Make autoconf use correct options to build solaris shared libraries

This commit is contained in:
Keith Packard 2002-06-07 17:55:41 +00:00
parent b5b6d7f85d
commit 8a39040e2a
1 changed files with 13 additions and 2 deletions

View File

@ -1,5 +1,5 @@
dnl 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
dnl Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc. dnl Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
dnl dnl
@ -81,10 +81,21 @@ if test "$GCC" = "yes"; then
DSO_CFLAGS='' DSO_CFLAGS=''
DSO_PIC_CFLAGS='-fPIC -DPIC' DSO_PIC_CFLAGS='-fPIC -DPIC'
else else
AC_CANONICAL_HOST
MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@' MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
DSO_LDOPTS='-shared -h $@'
DSO_CFLAGS='' DSO_CFLAGS=''
DSO_PIC_CFLAGS='-KPIC -DPIC' 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 fi
AC_SUBST(MKSHLIB) AC_SUBST(MKSHLIB)