diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2002-09-08 00:07:49 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2002-09-08 00:07:49 +0000 |
commit | d92d88b0bb81651379111809c6038ee83cc1d09e (patch) | |
tree | a930deed8f0435f71035669bc75889728314594c /games | |
parent | The previous distfile was corrupted; the new one has no other changes. (diff) |
Link with ${CXX} instead of ${CC} since this contains C++ code.
Notes
Notes:
svn path=/head/; revision=65801
Diffstat (limited to 'games')
-rw-r--r-- | games/crafty/files/patch-aa | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/games/crafty/files/patch-aa b/games/crafty/files/patch-aa index 79e77ce3194e..2bc7628707c1 100644 --- a/games/crafty/files/patch-aa +++ b/games/crafty/files/patch-aa @@ -1,5 +1,5 @@ ---- Makefile.orig Tue Apr 3 12:43:10 2001 -+++ Makefile Tue Apr 3 12:45:43 2001 +--- Makefile.orig Fri Feb 8 18:48:49 2002 ++++ Makefile Sat Sep 7 16:05:47 2002 @@ -21,7 +21,7 @@ # SGI {SGI Workstation running Irix (SYSV/R4) Unix} # SUN {Sun SparcStation running Solaris (SYSV/R4) Unix} @@ -9,7 +9,7 @@ # NetBSD {multi-architecture running NetBSD (Unix)} # Cygwin {80X86 running Cygwin under Win32 (Unix)} # -@@ -142,14 +142,23 @@ +@@ -142,16 +142,25 @@ asm='X86.o' \ crafty-make @@ -24,8 +24,8 @@ opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST' \ asm=X86-elf.o \ -+ crafty-make -+ + crafty-make + +# This should work for non-i386 FreeBSD (e.g. Alpha) +freebsd-generic: + $(MAKE) target=FreeBSD \ @@ -33,6 +33,17 @@ + CFLAGS='$(CFLAGS)' \ + LDFLAGS='$(LDFLAGS)' \ + opt='$(opt) -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS -DFAST' \ - crafty-make - ++ crafty-make ++ freebsd-pgcc: + $(MAKE) target=FreeBSD \ + CC=gcc CXX='$$(CC)' \ +@@ -368,7 +377,7 @@ + crafty + + crafty: $(objects) +- $(CC) $(LDFLAGS) -o crafty $(objects) -lm $(LIBS) ++ $(CXX) $(LDFLAGS) -o crafty $(objects) -lm $(LIBS) + @rm -f X86-elf.S + @rm -f X86-aout.S + |