[AD] Simple aclocal.m4 patch (try #2)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


This patch just fixes the -Wl,-export-dynamic (which should be
-Wl,--export-dynamic) problem.

Patch attached this time.
Index: aclocal.m4
===================================================================
RCS file: /cvsroot/alleg/allegro/aclocal.m4,v
retrieving revision 1.71
diff -u -r1.71 aclocal.m4
--- aclocal.m4	25 Nov 2004 09:38:25 -0000	1.71
+++ aclocal.m4	3 Dec 2004 12:13:41 -0000
@@ -142,7 +142,7 @@
 AC_MSG_RESULT(\"$allegro_cv_asm_prefix\")])
 
 dnl
-dnl Test for modules support (dlopen interface and -export-dynamic linker flag).
+dnl Test for modules support (dlopen interface and --export-dynamic linker flag).
 dnl
 dnl Variables:
 dnl  allegro_support_modules=(yes|)
@@ -158,10 +158,10 @@
 
 if test -n "$allegro_enable_modules"; then
   AC_CHECK_HEADERS(dlfcn.h,
-    [AC_CACHE_CHECK(whether -export-dynamic linker flag is supported,
+    [AC_CACHE_CHECK(whether --export-dynamic linker flag is supported,
       allegro_cv_support_export_dynamic,
       [allegro_save_LDFLAGS="$LDFLAGS"
-      LDFLAGS="-Wl,-export-dynamic $LDFLAGS"
+      LDFLAGS="-Wl,--export-dynamic $LDFLAGS"
       AC_TRY_LINK(,,
         allegro_cv_support_export_dynamic=yes,
         allegro_cv_support_export_dynamic=no,
@@ -172,7 +172,7 @@
       dnl Use libdl if found, else assume dl* functions in libc.
       AC_CHECK_LIB(dl, dlopen,
         [LIBS="-ldl $LIBS"])
-      LDFLAGS="-Wl,-export-dynamic $LDFLAGS"
+      LDFLAGS="-Wl,--export-dynamic $LDFLAGS"
     fi])
 fi
 ])


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/