Compiling pfil 2.1.10 on Solaris 9/sparc64 with both GNU make (3.80) 
and Solaris 9 make both cause an indefinite make fork loop, which is fixed
by altering the following.  (new code derived from pfil 2.1.7 Makefile)

Not sure which version of make likes the BLAH:sh= syntax...

(BTW my SHELL is bash if that matters, and using gcc 3.3.3)

Ian D
--

*** Makefile.wrong     Fri May 19 01:54:30 2006
--- Makefile    Fri May 19 02:01:35 2006
***************
*** 20,27 ****
  #
  SOLARIS="`uname -r | sed -e 's/[0-9]*\.\([0-9]*\).*/\1/'`"
  SFLAGS=-I.. -I. -D_KERNEL -DSUNDDI -DSOLARIS2=${SOLARIS} $(PFILDEBUG)
! SBITS:sh=optisa sparcv9 >/dev/null 2>&1; if [ "$?" -eq 0 ] ; then echo "64"; 
else echo "32"; fi
! MIOCPULLUP:sh=/usr/ccs/bin/nm -p /dev/ksyms|/usr/xpg4/bin/grep -q miocpullup; 
if [ "$?" -ne 0 ] ; then echo -DNEED_MIOCPULLUP; fi
  # For Sun's C compiler in /opt/SUNWSpro cc:
  #S64FLAGS=-xildoff -xarch=v9 -xchip=ultra -dalign -xcode=abs32 
-DDO=pfil${SBITS}
  # For GCC
--- 20,27 ----
  #
  SOLARIS="`uname -r | sed -e 's/[0-9]*\.\([0-9]*\).*/\1/'`"
  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`
! MIOCPULLUP=`/usr/ccs/bin/nm -p /dev/ksyms|/usr/xpg4/bin/grep -q miocpullup; 
if [ "$?" -ne 0 ] ; then echo -DNEED_MIOCPULLUP; fi`
  # For Sun's C compiler in /opt/SUNWSpro cc:
  #S64FLAGS=-xildoff -xarch=v9 -xchip=ultra -dalign -xcode=abs32 
-DDO=pfil${SBITS}
  # For GCC

Reply via email to