Re: [AD] Stripping libraries |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2003-05-08, Eric <ebotcazou@xxxxxxxxxx> wrote:
> > I'm talking about the makefile. The Unix makefile (at least), runs ld
> > (the linker) with the -s switch, which strips symbols out of the
> > library. The user doesn't get a chance to preserve the symbols.
>
> Actually a little chance: passing --enable-dbgprog (tested) or
> --enable-profprog (untested). But this is obviously unsatisfactory.
Patched thusly on trunk and branch. I didn't provide a make strip (yet?)
--
王浩禎
Index: aclocal.m4
===================================================================
RCS file: /cvsroot/alleg/allegro/aclocal.m4,v
retrieving revision 1.26.2.5
diff -u -r1.26.2.5 aclocal.m4
--- aclocal.m4 31 Jan 2003 16:12:39 -0000 1.26.2.5
+++ aclocal.m4 11 May 2003 00:31:43 -0000
@@ -485,22 +485,6 @@
AC_MSG_RESULT($allegro_support_constructor)])
dnl
-dnl Test for buggy IRIX linker.
-dnl
-dnl Variables:
-dnl allegro_cv_prog_ld_s
-dnl
-AC_DEFUN(ALLEGRO_ACTEST_PROG_LD_S,
-[AC_MSG_CHECKING(whether linker works with -s option)
-allegro_save_LDFLAGS=$LDFLAGS
-LDFLAGS="-s $LDFLAGS"
-AC_CACHE_VAL(allegro_cv_prog_ld_s, [
-AC_TRY_LINK(,{},allegro_cv_prog_ld_s=yes, allegro_cv_prog_ld_s=no)])
-LDFLAGS=$allegro_save_LDFLAGS
-AC_MSG_RESULT($allegro_cv_prog_ld_s)
-])
-
-dnl
dnl Test for buggy gcc version.
dnl
dnl Variables:
Index: configure.in
===================================================================
RCS file: /cvsroot/alleg/allegro/configure.in,v
retrieving revision 1.38.2.13
diff -u -r1.38.2.13 configure.in
--- configure.in 8 May 2003 14:41:41 -0000 1.38.2.13
+++ configure.in 11 May 2003 00:31:45 -0000
@@ -110,7 +110,6 @@
ALLEGRO_ACTEST_GCC_VERSION
ALLEGRO_ACTEST_GCC_INCLUDE_PREFIX
AC_PROG_CPP
-ALLEGRO_ACTEST_PROG_LD_S
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_PROG_MAKE_SET
@@ -198,9 +197,6 @@
else
COMPILE_PROGRAM=COMPILE_NORMAL
COMPILE_S_PROGRAM=COMPILE_S_NORMAL
- if test "X$allegro_cv_prog_ld_s" = "Xyes"; then
- LDFLAGS="-s $LDFLAGS"
- fi
LIB_TO_LINK=alleg
PLUGIN_LIB=lib/unix/libaldat.a
allegro_build_normal_library=yes
Index: misc/allegro-config.in
===================================================================
RCS file: /cvsroot/alleg/allegro/misc/allegro-config.in,v
retrieving revision 1.15.2.8
diff -u -r1.15.2.8 allegro-config.in
--- misc/allegro-config.in 5 May 2003 16:39:03 -0000 1.15.2.8
+++ misc/allegro-config.in 11 May 2003 00:31:47 -0000
@@ -19,7 +19,7 @@
static_libs=@LINK_WITH_STATIC_LIBS@
lib_type=@LIB_TO_LINK@
-allegro_ldflags=`echo "@LDFLAGS@" | sed -e "s/ -s\b//"`
+allegro_ldflags="@LDFLAGS@"
allegro_libs="@LIBS@"
allegro_cflags=""
allegro_cppflags=""