Commit 2616ebfe authored by unknown's avatar unknown

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.
parent 50fdd2b3
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
#ifdef _AIX /* By soren@t.dk */ #ifdef _AIX /* By soren@t.dk */
#define _H_STRINGS #define _H_STRINGS
#define _SYS_STREAM_H #define _SYS_STREAM_H
#define _AIX32_CURSES /* #define _AIX32_CURSES */ /* XXX: this breaks AIX 4.3.3 (others?). */
#endif #endif
#ifdef HAVE_BROKEN_SNPRINTF /* HPUX 10.20 don't have this defined */ #ifdef HAVE_BROKEN_SNPRINTF /* HPUX 10.20 don't have this defined */
......
...@@ -1308,7 +1308,9 @@ else ...@@ -1308,7 +1308,9 @@ else
hardcode_direct=yes hardcode_direct=yes
fi fi
allow_undefined_flag=' ${wl}-berok' 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}' 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].*) case "$host_os" in aix4.[01]|aix4.[01].*)
# According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment