]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in: (dyld/darwin*) Much improved port.
authorWilfredo Sanchez <wsanchez@apple.com>
Sat, 16 Dec 2000 13:43:53 +0000 (13:43 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sat, 16 Dec 2000 13:43:53 +0000 (13:43 +0000)
* ltcf-c.sh: (dyld/darwin*) Much improved port.
* libtool.m4: (dyld/darwin*) Much improved port.
* ltmain.in: (dyld/darwin*) Much improved port.

ChangeLog
libtool.m4
ltcf-c.sh
ltconfig.in

index 6c25b3627c47d54338858e590daaee83db8591a2..60c7d626c3f72702cff161827fc12b77e63fad20 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-12-16   Wilfredo Sanchez  <wsanchez@apple.com>
+
+       * ltconfig.in: (dyld/darwin*) Much improved port.
+       * ltcf-c.sh: (dyld/darwin*) Much improved port.
+       * libtool.m4: (dyld/darwin*) Much improved port.
+       * ltmain.in: (dyld/darwin*) Much improved port.
+       
 2000-12-16  Sascha Schumann <sascha@schumann.cx>
 
        * ltmain.in: Accept darwin as an alias for rhapsody.
index 212e6af4e60a085a6c83da81a6ce428cb73562a1..2550cb285115bb9d6cb4484e58891a8b6301aa97 100644 (file)
@@ -537,6 +537,12 @@ cygwin* | mingw* |pw32*)
   lt_cv_file_magic_cmd='$OBJDUMP -f'
   ;;
 
+darwin* | rhapsody*)
+  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
+  lt_cv_file_magic_cmd=/usr/bin/file
+  lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
+  ;;
+
 freebsd* )
   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
     case "$host_cpu" in
index c8a8d7a847a8efc4a80d602e00e3f8b7eef75ad2..0abfcdb04ca2efc5fecb13e59426ca64265b8c0a 100644 (file)
--- a/ltcf-c.sh
+++ b/ltcf-c.sh
@@ -167,6 +167,18 @@ EOF
       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
     ;;
 
+  darwin*|rhapsody*)
+    allow_undefined_flag='-undefined warning'
+    archive_cmds='$CC $(if [ "$module" = "yes" ]; then echo -bundle; else
+      echo -dynamiclib; fi) -o $lib $libobjs $deplibs $linkopts'
+    archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
+    ## What we need is to hardcode the path to the library, not the search path
+    #hardcode_direct=yes
+    #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
+    hardcode_shlibpath_var=no
+    whole_archive_flag_spec='-all_load'
+    ;;
+
   netbsd*)
     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
index f3053cd101973f8524be06006c208f8c6450d2f7..5e795d45f2606bdc39a2d8baa8207f2b8dc8cb03 100755 (executable)
@@ -999,6 +999,15 @@ cygwin* | mingw* | pw32*)
   lt_cv_dlopen_libs=
   ;;
 
+darwin* | rhapsody*)
+  library_names_spec='${libname}.`if [ "$module" = "yes" ]; then echo so; else echo dylib; fi`'
+  need_lib_prefix=no
+  need_version=no
+  postinstall_cmds='chmod +x $lib'
+  shlibpath_overrides_runpath=yes
+  shlibpath_var=DYLD_LIBRARY_PATH
+  ;;
+
 freebsd1*)
   dynamic_linker=no
   ;;