From: oetiker Date: Fri, 2 Mar 2001 22:48:39 +0000 (+0000) Subject: added test for hpux. if matched, compile zlib with -fpic instead of -fPIC X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2a4b79a69518b2647601791ec8cdfbb10f11d28d;p=rrdtool-all.git added test for hpux. if matched, compile zlib with -fpic instead of -fPIC git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@18 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/configure.in b/program/configure.in index 3466c45b..d8a27e75 100644 --- a/program/configure.in +++ b/program/configure.in @@ -148,12 +148,14 @@ fi dnl add pic flag in any case this makes sure all our code is relocatable CFLAGS="$CFLAGS "`grep pic_flag= libtool | sed -e 's/.*pic_flag=//' -e 's/"//g'` +ZLIB_CFLAGS=$CFLAGS dnl it seems that hpux chockes on -fPIC for some reason case $target_os in *hpux*) - CLFAGS=`echo $CFLAGS|sed -e 's/-fPIC/-fpic/g'` + ZLIB_CFLAGS=`echo $CFLAGS|sed -e 's/-fPIC/-fpic/g'` ;; esac +AC_SUBST(ZLIB_CFLAGS) dnl Checks for library functions. AC_FUNC_STRFTIME diff --git a/program/libraries/zlib-1.1.3/Makefile.am b/program/libraries/zlib-1.1.3/Makefile.am index 457db90e..6eda278d 100644 --- a/program/libraries/zlib-1.1.3/Makefile.am +++ b/program/libraries/zlib-1.1.3/Makefile.am @@ -8,6 +8,8 @@ EXTRA_DIST= ChangeLog FAQ INDEX README README.rrdtool algorithm.txt zlib.dsp zlib.dsw zlib.3 +CFLAGS = $(ZLIB_CFLAGS) + noinst_LTLIBRARIES = librrd_z.la librrd_z_la_SOURCES = \