Lines 1-33
Link Here
|
1 |
--- gtk/makefile.orig 2019-06-07 22:35:09 UTC |
1 |
--- gtk/makefile.orig 2020-01-02 00:45:08 UTC |
2 |
+++ gtk/makefile |
2 |
+++ gtk/makefile |
3 |
@@ -12,8 +12,8 @@ ifdef CLANG |
3 |
@@ -18,8 +18,6 @@ ifdef CLANG |
4 |
# thread also need to create Position Independent Executable -> search online documentation |
4 |
# thread also need to create Position Independent Executable -> search online documentation |
5 |
SANITIZE = address |
5 |
SANITIZE = address |
6 |
#SANITIZE = undefined |
6 |
#SANITIZE = undefined |
7 |
-CXX = clang++ -fsanitize=$(SANITIZE) -Wno-deprecated-register |
7 |
-CXX = clang++ |
8 |
-CC = clang -fsanitize=$(SANITIZE) |
8 |
-CC = clang |
9 |
+CXX = $(CXX) -fsanitize=$(SANITIZE) -Wno-deprecated-register |
9 |
BASE_FLAGS += -fsanitize=$(SANITIZE) |
10 |
+CC = $(CC) -fsanitize=$(SANITIZE) |
10 |
WARNINGS += -Wno-deprecated-register |
11 |
CCWARNINGS = -Wno-empty-body -Wno-string-plus-int |
11 |
WARNINGS += -Wno-empty-body |
12 |
else |
12 |
@@ -33,7 +31,7 @@ GTK_VERSION = $(if $(GTK3),gtk+-3.0,gtk+-2.0) |
13 |
MISLEADING=-Wno-misleading-indentation |
13 |
# For the Gnome desktop stuff to work, prefix must point to where Gnome thinks it is. |
14 |
@@ -29,7 +29,7 @@ endif |
14 |
CONFIGFLAGS:=$(shell pkg-config --cflags $(GTK_VERSION)) |
15 |
CONFIGFLAGS:=$(shell pkg-config --cflags $(GTKVERSION)) |
15 |
CONFIGLIB:=$(shell pkg-config --libs $(GTK_VERSION) gthread-2.0 gmodule-no-export-2.0) |
16 |
CONFIGLIB:=$(shell pkg-config --libs $(GTKVERSION) gthread-2.0 gmodule-no-export-2.0) |
16 |
-gnomeprefix:=$(shell pkg-config --variable=prefix $(GTK_VERSION) 2>/dev/null) |
17 |
CONFIGTHREADS:= |
|
|
18 |
-gnomeprefix:=$(shell pkg-config --variable=prefix $(GTKVERSION) 2>/dev/null) |
19 |
+gnomeprefix:=$(PREFIX) |
17 |
+gnomeprefix:=$(PREFIX) |
20 |
ifndef prefix |
18 |
ifndef prefix |
21 |
ifdef gnomeprefix |
19 |
ifdef gnomeprefix |
22 |
prefix=$(gnomeprefix) |
20 |
prefix=$(gnomeprefix) |
23 |
@@ -125,8 +125,9 @@ FilePath.o EditorConfig.o SciTEBase.o FileWorker.o Coo |
21 |
@@ -141,8 +139,9 @@ SRC_OBJS = \ |
24 |
ExportHTML.o ExportPDF.o ExportRTF.o ExportTEX.o ExportXML.o \ |
22 |
StyleWriter.o \ |
25 |
MatchMarker.o StringHelpers.o \ |
23 |
Utf8_16.o |
26 |
PropSetFile.o MultiplexExtension.o DirectorExtension.o SciTEProps.o StyleDefinition.o StyleWriter.o Utf8_16.o \ |
24 |
|
27 |
- JobQueue.o GTKMutex.o IFaceTable.o $(COMPLIB) $(LUA_OBJS) |
25 |
-$(PROG): SciTEGTK.o GUIGTK.o Widget.o GTKMutex.o DirectorExtension.o $(SRC_OBJS) $(COMPLIB) $(LUA_OBJS) |
28 |
- $(CXX) `$(CONFIGTHREADS)` -rdynamic -Wl,--as-needed -Wl,--version-script $(srcdir)/lua.vers -DGTK $^ -o $@ $(CONFIGLIB) $(LIBDL) $(LDLIBS) -lm -lstdc++ |
26 |
- $(CXX) $(BASE_FLAGS) -rdynamic -Wl,--as-needed -Wl,--version-script $(srcdir)/lua.vers $^ -o $@ $(CONFIGLIB) $(LIBS) $(LDLIBS) |
29 |
+ JobQueue.o GTKMutex.o IFaceTable.o $(LUA_OBJS) |
27 |
+$(PROG): SciTEGTK.o GUIGTK.o Widget.o GTKMutex.o DirectorExtension.o $(SRC_OBJS) $(LUA_OBJS) |
30 |
+ $(CXX) -rdynamic -Wl,--version-script $(srcdir)/lua.vers -DGTK $(CXXFLAGS) $^ -o $@ \ |
28 |
+ $(CXX) $(BASE_FLAGS) -rdynamic -Wl,--version-script $(srcdir)/lua.vers $(CXXFLAGS) $^ -o $@ \ |
31 |
+ $(LDFLAGS) -lscintilla -lscintilla_lexers -Wl,--as-needed $(CONFIGLIB) |
29 |
+ $(LDFLAGS) -lscintilla -lscintilla_lexers -Wl,--as-needed $(CONFIGLIB) |
32 |
|
30 |
|
33 |
# Automatically generate header dependencies with "make deps" |
31 |
# Automatically generate header dependencies with "make deps" |