aboutsummaryrefslogtreecommitdiff
path: root/misc/free42/files/patch-gtk_Makefile
blob: a540fa9645f682f4e7270efebfc683b41ec951fc (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
--- gtk/Makefile.orig	2017-11-20 03:58:50 UTC
+++ gtk/Makefile
@@ -15,12 +15,11 @@
 # along with this program; if not, see http://www.gnu.org/licenses/.
 ###############################################################################
 
-CFLAGS = -MMD \
+FLAGS_COMMON = \
+	 -MMD \
 	 -Wall \
 	 -Wno-parentheses \
 	 -Wno-write-strings \
-	 -g \
-	 -I/usr/X11R6/include \
 	 $(shell pkg-config --cflags gtk+-2.0) \
 	 -DVERSION="\"$(shell cat ../VERSION)\"" \
 	 -DDECIMAL_CALL_BY_REFERENCE=1 \
@@ -29,13 +28,14 @@ CFLAGS = -MMD \
 	 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=1 \
 	 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS_ACCESS_FUNCTIONS=1
 
-CXXFLAGS = $(CFLAGS) \
+CFLAGS+= $(FLAGS_COMMON)
+
+CXXFLAGS+= $(FLAGS_COMMON) \
 	 -fno-exceptions \
 	 -fno-rtti \
 	 -D_WCHAR_T_DEFINED
 
-LDFLAGS = -L/usr/X11R6/lib
-LIBS = gcc111libbid.a -lXmu $(shell pkg-config --libs gtk+-2.0)
+LIBS = gcc111libbid.a -lXmu $(shell pkg-config --libs gtk+-2.0) -lX11
 
 ifeq "$(shell uname -s)" "Linux"
 LDFLAGS += -Wl,--hash-style=both
@@ -118,7 +118,7 @@ clean: FORCE
 	        readtest_lines.cc \
 	        gcc111libbid.a \
 		*.o *.d *.i *.ii *.s symlinks core.*
-	rm -rf IntelRDFPMathLib20U1
+	#rm -rf IntelRDFPMathLib20U1
 
 cleaner: FORCE
 	rm -f `find . -type l` \
@@ -128,7 +128,7 @@ cleaner: FORCE
 	        readtest_lines.cc \
 	        gcc111libbid.a \
 		*.o *.d *.i *.ii *.s symlinks core.*
-	rm -rf IntelRDFPMathLib20U1
+	#rm -rf IntelRDFPMathLib20U1
 
 FORCE: