summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2002-06-07 17:55:41 +0000
committerKeith Packard <keithp@keithp.com>2002-06-07 17:55:41 +0000
commit8a39040e2a1308602aabe1aa4a8608f94830534e (patch)
tree1fd04c6d638a457ee62e9adf9d18782a639a442c /configure.in
parentb5b6d7f85dba271e69b8008b3c56f13c74ec9dac (diff)
Make autoconf use correct options to build solaris shared librariesxf-4_2_99_1
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in15
1 files changed, 13 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 2e3846a..93b625c 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl
-dnl $XFree86: xc/lib/fontconfig/configure.in,v 1.4 2002/05/23 17:06:46 keithp Exp $
+dnl $XFree86: xc/lib/fontconfig/configure.in,v 1.5 2002/05/24 05:19:30 keithp Exp $
dnl
dnl Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
dnl
@@ -81,10 +81,21 @@ if test "$GCC" = "yes"; then
DSO_CFLAGS=''
DSO_PIC_CFLAGS='-fPIC -DPIC'
else
+ AC_CANONICAL_HOST
+
MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
- DSO_LDOPTS='-shared -h $@'
DSO_CFLAGS=''
DSO_PIC_CFLAGS='-KPIC -DPIC'
+
+ case "$host" in
+ *solaris*)
+ DSO_LDOPTS='-G -z text -z defs -h $@'
+ LIBS="$LIBS -lc"
+ ;;
+ *)
+ DSO_LDOPTS='-shared -h $@'
+ ;;
+ esac
fi
AC_SUBST(MKSHLIB)