assembler problems on Solaris

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3434 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Jacques Garrigue 2001-02-22 03:37:29 +00:00
parent 4f782171df
commit 770b5de3e7
2 changed files with 9 additions and 2 deletions

View File

@ -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

8
configure vendored
View File

@ -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)';;