Re: [AD] Stripping libraries |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> Patched thusly on trunk and branch.
@@ -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
Isn't that a big hammer? Now we don't strip anything, including the optimized
shared lib which deserves IMHO to be stripped. And note that we have the
same problem (a link-time option for programs gets passed to every shared
lib) with the "-pg" that Elias added very recently.
Can't we split LDFLAGS into a base LDFLAGS (suited to every shared linking)
and a PROGRAM_LDFLAGS suited only to programs? Then each shared lib would be
responsible for appending its own specialized option (-pg, -s, -g).
--
Eric Botcazou