forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qu-prolog-9.5-cflags.patch
34 lines (26 loc) · 1.06 KB
/
qu-prolog-9.5-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.5.orig/Makefile.in qp9.5/Makefile.in
--- qp9.5.orig/Makefile.in 2014-11-17 06:46:22.000000000 +0100
+++ qp9.5/Makefile.in 2015-05-03 11:29:52.000000000 +0200
@@ -23,7 +23,7 @@
export PROLOG = prolog
-
+export CXX=@CXX@
.PHONY: all
all: objects
diff -ur qp9.5.orig/src/Makefile.in qp9.5/src/Makefile.in
--- qp9.5.orig/src/Makefile.in 2014-11-17 06:46:22.000000000 +0100
+++ qp9.5/src/Makefile.in 2015-05-03 11:29:52.000000000 +0200
@@ -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)