diff options
author | unknown <tim@black.box> | 2001-11-01 20:51:23 -0500 |
---|---|---|
committer | unknown <tim@black.box> | 2001-11-01 20:51:23 -0500 |
commit | 2616ebfed994f303412bc36d0fa746145d41a0fa (patch) | |
tree | 0fff69cf7dd90df6f3c466d50f0b405bcf70e8ac /ltconfig | |
parent | 50fdd2b3717302095995f01bbefd1c875c0b85a2 (diff) | |
download | mariadb-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-x | ltconfig | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |