]> 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:03 +0000 (10:29 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sun, 25 Apr 1999 10:29:03 +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 a31a8f668136f8cee115fef53f0ff7c0a23e3f0c..29cbc1a7c91028527f32c31909b4fc550d9574c5 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 b680ee1226f132b7ad071bd939591df2a40f0e58..e4e881b9df99ed4c118ab1ebde59c3ae438529e0 100755 (executable)
@@ -1165,7 +1165,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
@@ -1185,12 +1184,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*)