]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (aix4*, allow_undefined_flag): Set to -berok.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sun, 25 Apr 1999 10:29:17 +0000 (10:29 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sun, 25 Apr 1999 10:29:17 +0000 (10:29 +0000)
(aix4*, shared_flag): Set to -shared or ${wl}-bM:SRE.
(aix4*, archive_cmds): Use -bexpall.
(aix4*, archive_cmds, archive_expsym_cmds): Use shared_flag and
allow_undefined_flag.
(aix4*, always_export_symbols): Set to yes up to AIX 4.1.*,
because -bexpall is supported from 4.2 on.
Reported by Greg Wooledge
<ic5035%tss1crs.amgreetings.com@rose.amgreetings.com>

ChangeLog
ltconfig.in

index 74220b02bbd4a68ef6f4b1519790ceb15c0ff1f9..36a23faa624be7a989250e1f048b1fcc67a6a7ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 1999-04-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * ltconfig.in (aix4*, allow_undefined_flag): Set to -berok.
+       (aix4*, shared_flag): Set to -shared or ${wl}-bM:SRE.
+       (aix4*, archive_cmds): Use -bexpall.
+       (aix4*, archive_cmds, archive_expsym_cmds): Use shared_flag and
+       allow_undefined_flag.
+       (aix4*, always_export_symbols): Set to yes up to AIX 4.1.*,
+       because -bexpall is supported from 4.2 on.
+       Reported by Greg Wooledge
+       <ic5035%tss1crs.amgreetings.com@rose.amgreetings.com>
+
        * ltconfig.in (hpux*, hardcode_minus_L): Set to yes.
        (hpux*, hardcode_libdir_flag_spec): Do not use +s by default.
        (hpux*, shlibpath_overrides_runpath): Set to no.
index 3d8407407b26fb557f4278e3c590d1b8065a8fd6..d02423b25ed7db5df08a94b878ffc16293208205 100755 (executable)
@@ -1173,7 +1173,6 @@ else
     ;;
 
   aix4*)
-    allow_undefined_flag=
     hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
     hardcode_libdir_separator=':'
     if test "$with_gcc" = yes; then
@@ -1193,12 +1192,18 @@ else
        hardcode_libdir_flag_spec='-L$libdir'
        hardcode_libdir_separator=
       fi
-      archive_cmds='$CC -shared ${wl}-bnoentry -o $objdir/$soname $libobjs $deplibs $linkopts'
+      shared_flag='-shared'
     else
-      always_export_symbols=yes
-      archive_expsym_cmds='$CC -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bM:SRE ${wl}-bnoentry'
+      shared_flag='${wl}-bM:SRE'
       hardcode_direct=yes
     fi
+    allow_undefined_flag=' ${wl}-berok'
+    archive_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
+    archive_expsym_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
+    case "$host_os" in 4.[01]|4.[01].*)
+      # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
+      always_export_symbols=yes ;;
+    esac
    ;;
 
   amigaos*)