diff options
author | Sergey Vojtovich <svoj@sun.com> | 2009-07-03 15:06:19 +0500 |
---|---|---|
committer | Sergey Vojtovich <svoj@sun.com> | 2009-07-03 15:06:19 +0500 |
commit | 0a6edfad1fa4a98880282af7a553be7b427c0882 (patch) | |
tree | a91dd6da99b07f1167855d8e00bd248965b53803 /storage | |
parent | 9b78102aaffd262325b2dd191bee8f3c8ef3975e (diff) | |
download | mariadb-git-0a6edfad1fa4a98880282af7a553be7b427c0882.tar.gz |
On Solaris shared objects must be linked from PIC code.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/innodb_plugin/plug.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/storage/innodb_plugin/plug.in b/storage/innodb_plugin/plug.in index a49bc2fea68..da0eee90f57 100644 --- a/storage/innodb_plugin/plug.in +++ b/storage/innodb_plugin/plug.in @@ -50,11 +50,14 @@ MYSQL_PLUGIN_ACTIONS(innodb_plugin, [ CFLAGS="$CFLAGS -DUNIV_SOLARIS";; esac INNODB_DYNAMIC_CFLAGS="-DMYSQL_DYNAMIC_PLUGIN" - case "$target_cpu" in - x86_64) + case "$target_cpu---$target_os" in + x86_64---*) # 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 INNODB_DYNAMIC_CFLAGS="$INNODB_DYNAMIC_CFLAGS -prefer-non-pic" ;; |