summaryrefslogtreecommitdiff
path: root/ltconfig
diff options
context:
space:
mode:
authortim@black.box <>2001-11-01 20:51:23 -0500
committertim@black.box <>2001-11-01 20:51:23 -0500
commit49b99afcbe2169b18daa055548a0f3f71fbae96d (patch)
tree0fff69cf7dd90df6f3c466d50f0b405bcf70e8ac /ltconfig
parentfd74164f6b474fcf5fe38249e88f344fa75fb66d (diff)
downloadmariadb-git-49b99afcbe2169b18daa055548a0f3f71fbae96d.tar.gz
Portability fixes for AIX 4.x
Diffstat (limited to 'ltconfig')
-rwxr-xr-xltconfig4
1 files changed, 3 insertions, 1 deletions
diff --git a/ltconfig b/ltconfig
index 18af7c4dce8..b9df847729d 100755
--- a/ltconfig
+++ b/ltconfig
@@ -1308,7 +1308,9 @@ else
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}'
+ # -qmkshrobj used to be -bexpall, but MySQL uses symbols which start with
+ # an underscore (e.g., _my_b_write), so -bexpall doesn't work.
+ archive_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-qmkshrobj ${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 aix4.[01]|aix4.[01].*)
# According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on