summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-12-03 05:22:35 +0000
committerkris <kris@FreeBSD.org>2002-12-03 05:22:35 +0000
commit1db9b46cafe2bca225bff6e2ec65a0c6cbe14540 (patch)
tree073036993bbc7de16b0901556c38f22e03fe457c
parente63099aaf44420f4e8506ae0e987199a9a72a535 (diff)
downloadFreeBSD-ports-1db9b46cafe2bca225bff6e2ec65a0c6cbe14540.zip
FreeBSD-ports-1db9b46cafe2bca225bff6e2ec65a0c6cbe14540.tar.gz
Use ${CXX} to build/link, instead of gcc -lstdc++ (fixes build on sparc64)
-rw-r--r--games/crossword/files/patch-aa37
1 files changed, 37 insertions, 0 deletions
diff --git a/games/crossword/files/patch-aa b/games/crossword/files/patch-aa
new file mode 100644
index 0000000..c3039c0
--- /dev/null
+++ b/games/crossword/files/patch-aa
@@ -0,0 +1,37 @@
+--- Makefile.orig Sat Oct 19 15:54:54 2002
++++ Makefile Mon Dec 2 21:09:54 2002
+@@ -1,26 +1,26 @@
+-CFLAGS=-Wall -O3 -fexpensive-optimizations -ffast-math -funroll-loops
++#CFLAGS=-Wall -O3 -fexpensive-optimizations -ffast-math -funroll-loops
+
+ all: crossword crossword_heur crw2tex
+
+ crossword: wordset.o crossword.cpp mirandom.o parametros.o Makefile
+- gcc $(CFLAGS) crossword.cpp wordset.o mirandom.o parametros.o contador.o -lstdc++ -o crossword
++ $(CXX) $(CXXFLAGS) crossword.cpp wordset.o mirandom.o parametros.o contador.o -o crossword
+
+ crossword_heur: wordset.o crossword.cpp mirandom.o parametros.o Makefile
+- gcc $(CFLAGS) -DHEUR crossword.cpp wordset.o mirandom.o parametros.o contador.o -lstdc++ -o crossword_heur
++ $(CXX) $(CXXFLAGS) -DHEUR crossword.cpp wordset.o mirandom.o parametros.o contador.o -o crossword_heur
+
+ wordset.o: wordset.h wordset.cpp contador.o Makefile
+- gcc -c $(CFLAGS) wordset.cpp -o wordset.o
++ $(CXX) -c $(CXXFLAGS) wordset.cpp -o wordset.o
+
+ contador.o: contador.h contador.cpp Makefile
+- gcc -c $(CFLAGS) contador.cpp -o contador.o
++ $(CXX) -c $(CXXFLAGS) contador.cpp -o contador.o
+
+ mirandom.o: mirandom.cpp mirandom.h Makefile
+- gcc -c $(CFLAGS) mirandom.cpp -o mirandom.o
++ $(CXX) -c $(CXXFLAGS) mirandom.cpp -o mirandom.o
+
+ parametros.o: parametros.cpp parametros.h Makefile
+- gcc -c $(CFLAGS) parametros.cpp -o parametros.o
++ $(CXX) -c $(CXXFLAGS) parametros.cpp -o parametros.o
+
+ crw2tex: crw2tex.cpp contador.o
+- gcc -Wall crw2tex.cpp contador.o -o crw2tex -lstdc++
++ $(CXX) -Wall crw2tex.cpp contador.o -o crw2tex
+ clean:
+ rm -f wordset.o contador.o crossword mirandom.o crw2tex *.log *.aux core *.tex crossword_heur *.dvi *.ps1 parametros.o example.out
OpenPOWER on IntegriCloud