summaryrefslogtreecommitdiff
path: root/ltconfig
diff options
context:
space:
mode:
authorunknown <tim@black.box>2001-11-01 20:51:23 -0500
committerunknown <tim@black.box>2001-11-01 20:51:23 -0500
commit2616ebfed994f303412bc36d0fa746145d41a0fa (patch)
tree0fff69cf7dd90df6f3c466d50f0b405bcf70e8ac /ltconfig
parent50fdd2b3717302095995f01bbefd1c875c0b85a2 (diff)
downloadmariadb-git-2616ebfed994f303412bc36d0fa746145d41a0fa.tar.gz
Portability fixes for AIX 4.x
include/my_global.h: Don't define _AIX32_CURSES; this breaks AIX 4.3 (maybe others?). If it is needed for some AIX systems which we support, we will need to define it conditionally. ltconfig: Under AIX, the -bexpall flag exports all symbols except those which start with an underscore. MySQL needs to export symbols which start with an underscore (e.g., _my_b_write), so -bexpall doesn't work. It seems that -qmkshrobj does what we want.
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