[AD] Simple aclocal.m4 patch (try #2) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: [AD] Simple aclocal.m4 patch (try #2)
- From: Chris <chris.kcat@xxxxxxxxxx>
- Date: Fri, 03 Dec 2004 04:14:01 -0800
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:return-path:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:x-enigmail-version:x-enigmail-supports:content-type; b=WbiyP2iB7fk8oLzCUEulL/bdtva4jRYH1v6zWb/J9ktu/m0J48zMlj6oYcV6LuILifpDa7dlR1zwxb7kBwVTZn2WdLWi72pHgpelLNO+XTa7pRZF9B52LYzYvceekwBpVmHiNGfNyTZfSTQuvMRN3BxhsPmwZN3bV160YAT45Jk=
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
])