summaryrefslogtreecommitdiffstats
path: root/unix/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'unix/aclocal.m4')
-rw-r--r--unix/aclocal.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/aclocal.m4 b/unix/aclocal.m4
index 317d2a9..1575806 100644
--- a/unix/aclocal.m4
+++ b/unix/aclocal.m4
@@ -732,7 +732,8 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
NetBSD-*|FreeBSD-[[1-2]].*|OpenBSD-*)
# Not available on all versions: check for include file.
AC_CHECK_HEADER(dlfcn.h, [
- SHLIB_CFLAGS="-fpic"
+ # NetBSD/SPARC needs -fPIC, -fpic will not do.
+ SHLIB_CFLAGS="-fPIC"
SHLIB_LD="ld -Bshareable -x"
SHLIB_LD_LIBS=""
SHLIB_SUFFIX=".so"