aboutsummaryrefslogtreecommitdiff
path: root/ltconfig
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.ch>2003-11-19 06:29:32 +0100
committerAndreas Tobler <andreast@gcc.gnu.org>2003-11-19 06:29:32 +0100
commit43d8d958ceabe3fa77308f115e2e616d307b9b3d (patch)
treea48bbeae29df42ceed0c81554bc0e2cce1f201d5 /ltconfig
parentf7a75b82d2228bdd8b92bef1138660b78454fae2 (diff)
downloadgcc-43d8d958ceabe3fa77308f115e2e616d307b9b3d.zip
gcc-43d8d958ceabe3fa77308f115e2e616d307b9b3d.tar.gz
gcc-43d8d958ceabe3fa77308f115e2e616d307b9b3d.tar.bz2
libtool.m4: Sync darwin bits from libtool cvs to build a gcc with shared/dylibed libraries.
2003-11-19 Andreas Tobler <a.tobler@schweiz.ch> * libtool.m4: Sync darwin bits from libtool cvs to build a gcc with shared/dylibed libraries. * ltmain.sh: Likewise. * ltcf-c.sh: Likewise, disable shared library build for OS-X < 10.3. * ltcf-cxx.sh: Likewise. * ltcf-gcj.sh: Likewise. * ltconfig: Likewise. From-SVN: r73729
Diffstat (limited to 'ltconfig')
-rwxr-xr-xltconfig23
1 files changed, 21 insertions, 2 deletions
diff --git a/ltconfig b/ltconfig
index 7ed24bc..9c420ac 100755
--- a/ltconfig
+++ b/ltconfig
@@ -965,6 +965,7 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
library_names_spec=
libname_spec='lib$name'
soname_spec=
+shrext=".so"
postinstall_cmds=
postuninstall_cmds=
finish_cmds=
@@ -1102,13 +1103,28 @@ cygwin* | mingw* | pw32*)
darwin* | rhapsody*)
dynamic_linker="$host_os dyld"
+ lt_cv_dlopen="dyld"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
version_type=darwin
need_lib_prefix=no
need_version=no
- library_names_spec='${libname}${release}${versuffix}.`test .$module = .yes && echo so || echo dylib` ${libname}${release}${major}.$`test .$module = .yes && echo so || echo dylib` ${libname}.`test .$module = .yes && echo so || echo dylib`'
- soname_spec='${libname}${release}${major}.`test .$module = .yes && echo so || echo dylib`'
+ # Disable shared library build on OS-X older than 10.3.
+ case $host_os in
+ darwin[1-6]*)
+ can_build_shared=no
+ ;;
+ darwin7*)
+ can_build_shared=yes
+ ;;
+ esac
+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+ soname_spec='${libname}${release}${major}$shared_ext'
shlibpath_overrides_runpath=yes
shlibpath_var=DYLD_LIBRARY_PATH
+ shrext='$(test .$module = .yes && echo .so || echo .dylib)'
+ sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
;;
freebsd1*)
@@ -2325,6 +2341,9 @@ objext="$objext"
# Old archive suffix (normally "a").
libext="$libext"
+# Shared library suffix (normally ".so").
+shrext='$shrext'
+
# Executable file suffix (normally "").
exeext="$exeext"