summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/configure.in b/source/configure.in
index 8b147c49e01..44b2533294a 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -641,7 +641,11 @@ case "$host_os" in
ATTEMPT_WRAP32_BUILD=yes
BLDSHARED="true"
LDSHFLAGS="-Wl,-soname,\$@ -shared"
- PICFLAG="-KPIC"
+ if test "${ac_cv_prog_CC}" = "gcc"; then
+ PICFLAG="-fPIC"
+ else
+ PICFLAG="-KPIC"
+ fi
;;
*aix*) AC_DEFINE(AIX)
BLDSHARED="true"