Darren Reed a écrit :
Does this patch help?
Yes, it builds, but there are still some SPARC references:
build 32 bit binaries.
make ok
(cd SunOS5/i386-5.10; make build TOP=../.. "CC=cc -Xa -xildoff"
'CFLAGS=-I$(TOP) -D_BSD_SOURCE -DSOLARIS2=10 '
"IPFLOG=-DIPFILTER_LOG" "LOGFAC=-DLOGFAC=LOG_LOCAL0"
"POLICY=-DIPF_DEFAULT_PASS=FR_PASS" "SOLARIS2=-DSOLARIS2=10" "DEBUG=-g"
"DCPU=" "LIBBPF=" "CPUDIR=i386-5.10" "IPFBPF=" 'STATETOP_CFLAGS='
"BPFILTER=" 'STATETOP_INC=' 'STATETOP_LIB=' "BITS=32" "OBJ=."
"LOOKUP=-DIPFILTER_LOOKUP -DIPFILTER_SCAN" "COMPIPF=" 'SYNC='
'ALLOPTS=-DIPFILTER_LOG -DIPFILTER_LOOKUP -DIPFILTER_SCAN
-DIPFILTER_SYNC -DIPFILTER_CKSUM' 'LIBBPF=' "IPFLKM=-DIPFILTER_LKM"
"SOLARIS2=-DSOLARIS2=10" "CPU=-Dsparc -D__sparc__"; cd ..)
This because the "buildsunos" script calls make with the "sunos5" target
(the general case):
make sunos5 SOLARIS2=-DSOLARIS2=10 CPU= CPUDIR=i386-5.10 'CC=cc -Xa
-xildoff' 'XARCH=-Xa -xildoff' ARCHINC= BITS=32 OBJ=.
And this target has the SPARC definition hardcoded, which I don't think
is desired:
sunos5 solaris2: null
(cd SunOS5/$(CPUDIR); $(MAKE) build TOP=../.. "CC=$(CC)"
$(DEST) $(MFLAGS) "SOLARIS2=$(SOLARIS2)" "CPU=-Dsparc -D__sparc__"; cd ..)
Laurent
--
/ Leader de Projet & Communauté | I'm working, but not speaking for
\ G11N http://fr.opensolaris.org | Bull Services http://www.bull.com
/ FOSUG http://guses.org |