diff options
author | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2001-02-22 03:37:29 +0000 |
---|---|---|
committer | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2001-02-22 03:37:29 +0000 |
commit | 770b5de3e773124f8cbdd606659d6e5481b365cc (patch) | |
tree | a7f4443c3b8ed56e2bfd040d3252a320275f0df8 | |
parent | 4f782171df639316093ab26debbb9a77e7daa123 (diff) |
assembler problems on Solaris
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3434 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | asmrun/Makefile | 3 | ||||
-rwxr-xr-x | configure | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/asmrun/Makefile b/asmrun/Makefile index af572734b..c9ae28d00 100644 --- a/asmrun/Makefile +++ b/asmrun/Makefile @@ -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)';; |