+1999-05-24 Thomas Tanner <tanner@ffii.org>
+
+ * NEWS: support for installing stripped libraries using GNU strip
+ * ltconfig.in: set deplibs_check_method=pass_all on FreeBSD,
+ Linux and Solaris since no one can reproduce the famous deplibs
+ bug
+ * ltmain.in: preserve $CC (reported by Tom Tromey),
+ strip libraries using GNU strip if it's available and the
+ -s flag was passed to "install"
+
1999-05-23 Alexandre Oliva <oliva@dcc.unicamp.br>
* doc/PLATFORMS: Release 1.3.1 passes on GNU Hurd/x86.
# libtool link mode
link)
modename="$modename: link"
- C_compiler="$CC" # save it, to compile generated C sources
- CC="$nonopt"
case "$host" in
*-*-cygwin* | *-*-mingw* | *-*-os2*)
# It is impossible to link a dll without this setting, and
int main() { return 0; }
EOF
$rm conftest
- $C_compiler -o conftest conftest.c $deplibs
+ $CC -o conftest conftest.c $deplibs
if test $? -eq 0 ; then
ldd_output=`ldd conftest`
for i in $deplibs; do
# If $name is empty we are operating on a -L argument.
if test "$name" != "" ; then
$rm conftest
- $C_compiler -o conftest conftest.c $i
+ $CC -o conftest conftest.c $i
# Did it work?
if test $? -eq 0 ; then
ldd_output=`ldd conftest`
esac
# Now compile the dynamic symbol file.
- $show "(cd $output_objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
- $run eval '(cd $output_objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
+ $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
+ $run eval '(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
# Clean up the generated files.
$show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
install_type=
isdir=no
stripme=
+ gnustrip=no
for arg
do
if test -n "$dest"; then
-o) prev="-o" ;;
-s)
stripme=" -s"
+ strip -V | grep "GNU strip" >/dev/null && gnustrip=yes
continue
;;
-*) ;;
$show "$install_prog $dir/$realname $destdir/$realname"
$run eval "$install_prog $dir/$realname $destdir/$realname" || exit $?
test "X$dlname" = "X$realname" && dlname=
+ if test $gnustrip = yes; then
+ $show "strip --strip-unneeded $destdir/$realname"
+ $run eval "strip --strip-unneeded $destdir/$realname" || exit $?
+ fi
if test $# -gt 0; then
# Delete the old symlinks, and create new ones.
$show "$install_prog $file $oldlib"
$run eval "$install_prog \$file \$oldlib" || exit $?
+ if test $gnustrip = yes; then
+ $show "strip --strip-debug $oldlib"
+ $run eval "strip --strip-debug $oldlib" || exit $?
+ fi
+
# Do each command in the postinstall commands.
eval cmds=\"$old_postinstall_cmds\"
IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'