Compile with -fPIC flag.

This commit is contained in:
steve 2003-05-16 03:23:17 +00:00
parent 8126bdd384
commit 11058017df
2 changed files with 19 additions and 2 deletions

View File

@ -16,7 +16,7 @@
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
#ident "$Id: Makefile.in,v 1.21 2003/04/23 15:01:29 steve Exp $"
#ident "$Id: Makefile.in,v 1.22 2003/05/16 03:23:17 steve Exp $"
#
#
SHELL = /bin/sh
@ -38,7 +38,7 @@ INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
CPPFLAGS = @CPPFLAGS@ @DEFS@
CPPFLAGS = @CPPFLAGS@ @DEFS@ @PICFLAG@
CXXFLAGS = @CXXFLAGS@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@

View File

@ -17,6 +17,23 @@ case "${host}" in
;;
esac
AC_MSG_CHECKING("for flag to make position independent code")
PICFLAG=-fPIC
case "${host}" in
*-*-cygwin*)
PICFLAG=
;;
*-*-hpux*)
PICFLAG=+z
;;
esac
AC_SUBST(PICFLAG)
AC_MSG_RESULT($PICFLAG)
AC_SUBST(EXEEXT)
AC_SUBST(EXTRALIBS)