From 8c1990eccf4485cf01184d531f45d50b62dd48c6 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Tue, 25 May 1999 16:05:50 +0000 Subject: [PATCH] * 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" --- NEWS | 2 ++ ltconfig.in | 10 +++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/NEWS b/NEWS index 9de2c2f60..8fe293734 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,8 @@ New in 1.3b: 1999-??-??; CVS version 1.3a, Libtool team: directly to the compiler * New "-Wl,flag" and "-Xlinker flag" flags to pass flags directly to the linker +* Support for installing stripped libraries using GNU strip (install -s). + Automake >= 1.5 will install stripped libraries with "make install-strip". * Support for linking DLLs on Win32 * New `clean' mode to delete uninstalled files. * New demos and tests diff --git a/ltconfig.in b/ltconfig.in index 547993af9..a9dfc1f64 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1783,9 +1783,7 @@ freebsd*) version_type=freebsd-$objformat case "$version_type" in freebsd-elf*) - deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' - file_magic_cmd=/usr/bin/file - file_magic_test_file=`echo /usr/lib/libc.so*` + deplibs_check_method=pass_all library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' need_version=no need_lib_prefix=no @@ -1868,9 +1866,7 @@ linux-gnu*) finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no - deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - file_magic_cmd=/usr/bin/file - file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` + deplibs_check_method=pass_all if test -f /lib/ld.so.1; then dynamic_linker='GNU ld.so' @@ -1948,7 +1944,7 @@ solaris*) shlibpath_overrides_runpath=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' - deplibs_check_method="file_magic ELF [0-9][0-9]-bit [LM]SB dynamic lib" + deplibs_check_method=pass_all file_magic_cmd=/usr/bin/file file_magic_test_file=/lib/libc.so ;; -- 2.47.3