1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/devel/libtool15/files/patch-ac
Steve Price cb29850f01 Changes from maintainer:
1. Add a -prefix arguement to libtool, to find where the installed
       copies of ltconfig and ltmain.sh reside.
    2. Don't install the .la files unless --install-ltlibs is passed to
       ltconfig.
    3. Don't force linking with -lc, and allow -?thread to be passed to
       the linker.
    4. Don't build static libs if not using version numbers (for
       plugins).
    5. Install                      instead of
         lib${release}.a              lib.a
         lib${release}.so             lib.so
         lib${release}.so.${ver}      lib${release}.so.${ver}
       to support multi-release installations.
    6. Change version to "1.3-freebsd-ports" so people know who to
       blame.
    7. Misc fixes.

PR:		11839
Submitted by:	maintainer
1999-05-29 03:45:27 +00:00

91 lines
2.8 KiB
Plaintext

--- ltconfig.orig Thu Apr 29 15:30:36 1999
+++ ltconfig Sat May 22 15:52:24 1999
@@ -169,7 +169,7 @@
# Constants:
PROGRAM=ltconfig
PACKAGE=libtool
-VERSION=1.3
+VERSION=1.3-freebsd-ports
TIMESTAMP=" (1.385.2.117 1999/04/29 13:07:13)"
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5'
@@ -184,6 +184,7 @@
# All known linkers require a `.a' archive for static linking.
enable_static=yes
enable_fast_install=yes
+install_ltlibs=no
enable_dlopen=unknown
enable_win32_dll=no
ltmain=
@@ -244,6 +245,7 @@
--disable-shared do not build shared libraries
--disable-static do not build static libraries
--disable-fast-install do not optimize for fast installation
+ --install-ltlibs install the .la archives
--enable-dlopen enable dlopen support
--enable-win32-dll enable building dlls on win32 hosts
--help display this help and exit
@@ -277,6 +279,8 @@
--disable-fast-install) enable_fast_install=no ;;
+ --install-ltlibs) install_ltlibs=yes ;;
+
--enable-dlopen) enable_dlopen=yes ;;
--enable-win32-dll) enable_win32_dll=yes ;;
@@ -927,11 +931,11 @@
$rm conftest.dat
if ln -s X conftest.dat 2>/dev/null; then
$rm conftest.dat
- LN_S="ln -s"
+ LN_S="ln -sf"
else
LN_S=ln
fi
- if test "$LN_S" = "ln -s"; then
+ if test "$LN_S" = "ln -sf"; then
echo "$ac_t"yes 1>&6
else
echo "$ac_t"no 1>&6
@@ -1742,19 +1746,17 @@
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*`
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
- need_version=no
- need_lib_prefix=no
;;
freebsd-*)
- deplibs_check_method=unknown
- library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
- need_version=yes
+ deplibs_check_method='file_magic FreeBSD.* shared library'
;;
esac
- finish_cmds='PATH="\$PATH:/sbin" OBJFORMAT="'"$objformat"'" ldconfig -m $libdir'
+ file_magic_cmd=/usr/bin/file
+ file_magic_test_file=`echo /usr/lib/libc.so.*`
+ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so'
+ need_version=no
+ need_lib_prefix=no
+ finish_cmds='/usr/bin/env OBJFORMAT="'"$objformat"'" /sbin/ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
;;
@@ -2613,6 +2615,12 @@
# Shell to use when invoking shell scripts.
SHELL=$LTSHELL
+
+# Install PREFIX
+PREFIX=$PREFIX
+
+# Whether to waste disk space.
+install_ltlibs=$install_ltlibs
# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared