summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@sun.com>2009-07-03 15:06:19 +0500
committerSergey Vojtovich <svoj@sun.com>2009-07-03 15:06:19 +0500
commit0a6edfad1fa4a98880282af7a553be7b427c0882 (patch)
treea91dd6da99b07f1167855d8e00bd248965b53803
parent9b78102aaffd262325b2dd191bee8f3c8ef3975e (diff)
downloadmariadb-git-0a6edfad1fa4a98880282af7a553be7b427c0882.tar.gz
On Solaris shared objects must be linked from PIC code.
-rw-r--r--storage/innodb_plugin/plug.in9
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"
;;