Commit 2a623e0e authored by Sergey Vojtovich's avatar Sergey Vojtovich

On Solaris shared objects must be linked from PIC code.

parent b016051e
...@@ -50,11 +50,14 @@ MYSQL_PLUGIN_ACTIONS(innodb_plugin, [ ...@@ -50,11 +50,14 @@ MYSQL_PLUGIN_ACTIONS(innodb_plugin, [
CFLAGS="$CFLAGS -DUNIV_SOLARIS";; CFLAGS="$CFLAGS -DUNIV_SOLARIS";;
esac esac
INNODB_DYNAMIC_CFLAGS="-DMYSQL_DYNAMIC_PLUGIN" INNODB_DYNAMIC_CFLAGS="-DMYSQL_DYNAMIC_PLUGIN"
case "$target_cpu" in case "$target_cpu---$target_os" in
x86_64) x86_64---*)
# The AMD64 ABI forbids absolute addresses in shared libraries # The AMD64 ABI forbids absolute addresses in shared libraries
;; ;;
*86) *---solaris*|*---SunOS*)
# Shared objects must be linked from PIC code on Solaris.
;;
*86---)
# Use absolute addresses on IA-32 # Use absolute addresses on IA-32
INNODB_DYNAMIC_CFLAGS="$INNODB_DYNAMIC_CFLAGS -prefer-non-pic" INNODB_DYNAMIC_CFLAGS="$INNODB_DYNAMIC_CFLAGS -prefer-non-pic"
;; ;;
......
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