From 11058017dfdde11cf5724c0ad1e25f71ef682a6e Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 16 May 2003 03:23:17 +0000 Subject: [PATCH] Compile with -fPIC flag. --- libveriuser/Makefile.in | 4 ++-- libveriuser/configure.in | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/libveriuser/Makefile.in b/libveriuser/Makefile.in index df1ae3faf..a19eb126d 100644 --- a/libveriuser/Makefile.in +++ b/libveriuser/Makefile.in @@ -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@ diff --git a/libveriuser/configure.in b/libveriuser/configure.in index 6ca6dcb1f..88e1d9b53 100644 --- a/libveriuser/configure.in +++ b/libveriuser/configure.in @@ -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)