forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qu-prolog-9.1-cflags.patch
34 lines (26 loc) · 1.06 KB
/
qu-prolog-9.1-cflags.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
diff -ur qp9.1.orig/Makefile.in qp9.1/Makefile.in
--- qp9.1.orig/Makefile.in 2011-08-23 11:17:54.000000000 +1200
+++ qp9.1/Makefile.in 2012-01-14 12:57:16.000000000 +1300
@@ -23,7 +23,7 @@
export PROLOG = prolog
-
+export CXX=@CXX@
.PHONY: all
all: objects
diff -ur qp9.1.orig/src/Makefile.in qp9.1/src/Makefile.in
--- qp9.1.orig/src/Makefile.in 2011-08-23 11:17:54.000000000 +1200
+++ qp9.1/src/Makefile.in 2012-01-14 12:48:33.000000000 +1300
@@ -40,7 +40,7 @@
#export DEBUGGING=
-export CXXFLAGS = @GCC_ALIAS_FLAG@ -Wall -D_GNU_SOURCE=1 $(OPTIMISATION) @DEBUGGING@ @GCCINCLUDES@ -Wno-uninitialized
+#export CXXFLAGS = @GCC_ALIAS_FLAG@ -Wall -D_GNU_SOURCE=1 $(OPTIMISATION) @DEBUGGING@ @GCCINCLUDES@ -Wno-uninitialized
export QACXXFLAGS = -Wall -D_GNU_SOURCE=1 @DEBUGGING@ @GCCINCLUDES@ -Wno-uninitialized
.PHONY: all
@@ -79,6 +79,9 @@
# Targets
+.cc.o:
+ $(CXX) $(CXXFLAGS) @GCC_ALIAS_FLAG@ -Wall -D_GNU_SOURCE=1 @DEBUGGING@ @GCCINCLUDES@ -Wno-uninitialized -c $<
+
.PHONY: commands
commands: $(GENERATED) $(LIBRARIES) $(BIG_LIBRARY)
@$(MAKE) $(ALL_COMMANDS)