diff options
author | Richard Sharpe <sharpe@samba.org> | 2001-07-23 07:18:03 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2001-07-23 07:18:03 +0000 |
commit | 36d3a9d5dd2d3315ecc84b283bde4e82e28e3628 (patch) | |
tree | 398da34a244b799472d4e00adac2316336895605 | |
parent | cb6e6acb8dd7bb7ebd0a849823078a1f06c69ae7 (diff) | |
download | samba-36d3a9d5dd2d3315ecc84b283bde4e82e28e3628.tar.gz samba-36d3a9d5dd2d3315ecc84b283bde4e82e28e3628.tar.bz2 samba-36d3a9d5dd2d3315ecc84b283bde4e82e28e3628.zip |
OK, I think I have fscking IRIX figured out for building PIC code.
You have to check which fsking compiler is used and do different things!
(This used to be commit f38b5ba1946327714e1c9cc3ff91b0063906bd9c)
-rw-r--r-- | source3/configure.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/configure.in b/source3/configure.in index 8b147c49e0..44b2533294 100644 --- a/source3/configure.in +++ b/source3/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" |