assembler problems on Solaris
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3434 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
4f782171df
commit
770b5de3e7
|
@ -151,7 +151,8 @@ hppa.o: hppa.S
|
|||
.SUFFIXES: .S .d.o .p.o
|
||||
|
||||
.S.o:
|
||||
$(ASPP) $(ASPPFLAGS) -o $*.o $*.S
|
||||
$(ASPP) $(ASPPFLAGS) -o $*.o $*.S || \
|
||||
{ echo "If your assembler produced syntax errors, it is probably unhappy with the"; echo "preprocessor. Check your assembler, or try producing $*.o by hand."; exit 2; }
|
||||
|
||||
.S.p.o:
|
||||
$(ASPP) $(ASPPFLAGS) $(ASPPPROFFLAGS) -o $*.p.o $*.S
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
# $Id$
|
||||
|
||||
configure_options=$*
|
||||
prefix=/usr/local
|
||||
bindir=''
|
||||
libdir=''
|
||||
|
@ -101,6 +102,10 @@ cd config/auto-aux
|
|||
rm -f s.h m.h Makefile
|
||||
touch s.h m.h Makefile
|
||||
|
||||
# Write options to Makefile
|
||||
|
||||
echo "# generated by ./configure $configure_options" >> Makefile
|
||||
|
||||
# Where to install
|
||||
|
||||
echo "PREFIX=$prefix" >> Makefile
|
||||
|
@ -426,7 +431,8 @@ case "$arch,$model,$system" in
|
|||
*) asppflags='-P -DSYS_$(SYSTEM)';;
|
||||
esac;;
|
||||
i386,*,solaris) case "$cc" in
|
||||
gcc*) aspp='gcc'; asppflags='-c -DSYS_$(SYSTEM)';;
|
||||
# Intel/solaris assembler doesn't like GNU cpp output
|
||||
# gcc*) aspp='gcc'; asppflags='-c -DSYS_$(SYSTEM)';;
|
||||
*) asppflags='-P -DSYS_$(SYSTEM)';;
|
||||
esac;;
|
||||
i386,*,*) aspp='gcc'; asppflags='-c -DSYS_$(SYSTEM)';;
|
||||
|
|
Loading…
Reference in New Issue