]> git.sesse.net Git - vlc/commitdiff
* Fix vlc compilation on gcc-4.0 (only one patch how easy was that)
authorDerk-Jan Hartman <hartman@videolan.org>
Sat, 9 Apr 2005 23:31:47 +0000 (23:31 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Sat, 9 Apr 2005 23:31:47 +0000 (23:31 +0000)
configure.ac

index 183997bbf58c8f5f1928caaca693771ac7ee8566..4d0a5168532993848a870a3554ff4a6be0890562 100644 (file)
@@ -869,7 +869,10 @@ AC_CACHE_CHECK([if \$CC accepts -bundle -undefined error -lcc_dynamic],
     [CFLAGS="${CFLAGS_save} -bundle -undefined error -lcc_dynamic"
      AC_TRY_COMPILE([],,ac_cv_ld_darwin=yes, ac_cv_ld_darwin=no)])
 if test "${ac_cv_ld_darwin}" != "no"; then
-    VLC_ADD_LDFLAGS([plugin],[-bundle -undefined error -lcc_dynamic])
+    VLC_ADD_LDFLAGS([plugin],[-bundle -undefined error])
+    AC_CHECK_LIB(cc_dynamic, main,[
+      VLC_ADD_LDFLAGS([plugin],[-lcc_dynamic])
+    ])
 fi
 
 dnl Check for standard plugin linking flags