Horst Simon wrote:

I found the S64FLAGS variable, but I can not find any commented S64FLAGS for
gcc?

I am assuming you are compiling pfil 2.1.6. The gcc S64FLAGS is two lines below the first S64FLAGS line. Anyway, attached is the patch to Makefile to build with gcc.


Please note that this doesn't work properly on Solaris 5.7. I haven't had time to figure that one out.
--
---------------------------------------------------------------------------
Mark Leisher
Computing Research Lab All political parties die at last of
New Mexico State University swallowing their own lies.
Box 30001, MSC 3CRL -- John Arbuthnot (1667-1735)
Las Cruces, NM 88003
--- Makefile.orig       2005-03-25 08:28:21.000000000 -0700
+++ Makefile    2005-03-25 08:28:32.000000000 -0700
@@ -22,12 +22,13 @@
 SFLAGS=-I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=${SOLARIS} $(PFILDEBUG)
 SBITS=`optisa sparcv9 >/dev/null 2>&1; if [ $$? -eq 0 ] ; then echo "64"; else 
echo "32"; fi`
 # For Sun's C compiler in /opt/SUNWSpro cc:
-S64FLAGS=-xildoff -xarch=v9 -xchip=ultra -dalign -xcode=abs32 -DDO=pfil${SBITS}
+#S64FLAGS=-xildoff -xarch=v9 -xchip=ultra -dalign -xcode=abs32 
-DDO=pfil${SBITS}
 # For GCC
-#S64FLAGS=-m64 -mcmodel=medlow -DDO=pfil${SBITS}
+S64FLAGS=-m64 -mcmodel=medlow -DDO=pfil${SBITS}
 #
 TMP=/tmp
 PKG=pfil
+CC=gcc
 
 all:
        i=`uname -s`; case $$i in HP-UX) make hpux;; *) make $$i;; esac

Reply via email to