summaryrefslogtreecommitdiffstats
path: root/debian/patches/0008-951-fix-calling-compiler.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0008-951-fix-calling-compiler.patch')
-rw-r--r--debian/patches/0008-951-fix-calling-compiler.patch102
1 files changed, 102 insertions, 0 deletions
diff --git a/debian/patches/0008-951-fix-calling-compiler.patch b/debian/patches/0008-951-fix-calling-compiler.patch
new file mode 100644
index 0000000..3ce9f49
--- /dev/null
+++ b/debian/patches/0008-951-fix-calling-compiler.patch
@@ -0,0 +1,102 @@
+From: "Eugene V. Lyubimkin" <[email protected]>
+Date: Sat, 20 Feb 2016 18:20:25 +0100
+Subject: 951-fix-calling-compiler
+
+===================================================================
+---
+ makefiles/arch/desktop.mk | 3 +--
+ makefiles/gtksubdir.mk | 8 ++------
+ makefiles/platforms.mk | 4 +---
+ makefiles/qsubdir.mk | 8 ++------
+ makefiles/subdir.mk | 9 +--------
+ 5 files changed, 7 insertions(+), 25 deletions(-)
+
+diff --git a/makefiles/arch/desktop.mk b/makefiles/arch/desktop.mk
+index 357f2ce..78211a8 100644
+--- a/makefiles/arch/desktop.mk
++++ b/makefiles/arch/desktop.mk
+@@ -10,8 +10,7 @@ CC = gcc
+ AR = ar rsu
+ LD = g++
+
+-CFLAGS = -pipe -fno-exceptions -Wall -Wno-ctor-dtor-privacy -W -DLIBICONV_PLUG
+-LDFLAGS =
++CFLAGS += -pipe -fno-exceptions -Wall -Wno-ctor-dtor-privacy -W -DLIBICONV_PLUG
+ EXTERNAL_INCLUDE = $(shell $(PKG_CONFIG) --cflags fribidi)
+
+ MOC = "$(shell $(PKG_CONFIG) --variable=host_bins Qt5Core)/moc"
+ QTINCLUDE = $(shell $(PKG_CONFIG) --cflags Qt5Gui Qt5Widgets Qt5Network)
+diff --git a/makefiles/gtksubdir.mk b/makefiles/gtksubdir.mk
+index aed94f3..23f51da 100644
+--- a/makefiles/gtksubdir.mk
++++ b/makefiles/gtksubdir.mk
+@@ -11,14 +11,10 @@ OBJECTS += $(patsubst %.cpp, %.o, $(SOURCES))
+ .SUFFIXES: .c .cpp .o .h
+
+ .c.o:
+- @echo -n 'Compiling $@ ...'
+- @$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
+- @echo ' OK'
++ $(CC) -MMD -c $(CPPFLAGS) $(CFLAGS) $(INCLUDE) $<
+
+ .cpp.o:
+- @echo -n 'Compiling $@ ...'
+- @$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
+- @echo ' OK'
++ $(CC) -MMD -c $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) $(INCLUDE) $<
+
+ all: $(OBJECTS)
+
+diff --git a/makefiles/platforms.mk b/makefiles/platforms.mk
+index df83885..129463b 100644
+--- a/makefiles/platforms.mk
++++ b/makefiles/platforms.mk
+@@ -10,6 +10,4 @@ ifeq "$(UI_TYPE)" ""
+ $(error UI_TYPE is not defined. Please edit $(ROOTDIR)/makefiles/target.mk)
+ endif
+
+-ifeq "$(TARGET_STATUS)" ""
+- TARGET_STATUS = release
+-endif
++TARGET_STATUS = "" # Debian packaging always set flags itself
+diff --git a/makefiles/qsubdir.mk b/makefiles/qsubdir.mk
+index 14b4efc..f6ec87b 100644
+--- a/makefiles/qsubdir.mk
++++ b/makefiles/qsubdir.mk
+@@ -11,14 +11,10 @@ OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES))
+ .SUFFIXES: .cpp .moc.cpp .moc.o .o .h
+
+ .cpp.o:
+- @echo -n 'Compiling $@ ...'
+- @$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
+- @echo ' OK'
++ $(CC) -MMD -c $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) $(INCLUDE) $<
+
+ .h.moc.cpp:
+- @echo -n 'Generating $@ ...'
+- @$(MOC) $< -o $@
+- @echo ' OK'
++ $(MOC) $< -o $@
+
+ all: $(OBJECTS) $(OBJMOC)
+
+diff --git a/makefiles/subdir.mk b/makefiles/subdir.mk
+index b364211..63e66bf 100644
+--- a/makefiles/subdir.mk
++++ b/makefiles/subdir.mk
+@@ -11,14 +11,7 @@ OBJECTS = $(patsubst %.cpp, %.o, $(SOURCES_CPP)) $(patsubst %.M, %.o, $(SOURCES_
+ .SUFFIXES: .cpp .M .m .o .h
+
+ .cpp.o:
+- @echo -n 'Compiling $@ ...'
+-ifdef CFLAGS_NOARCH
+- @$(CC) -MM $(CFLAGS_PRE) $(INCLUDE) $< -o `basename $< .cpp`.d
+- @$(CC) -c $(CFLAGS) $(INCLUDE) $<
+-else
+- @$(CC) -MMD -c $(CFLAGS) $(INCLUDE) $<
+-endif
+- @echo ' OK'
++ $(CC) -MMD -c $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) $(INCLUDE) $<
+
+ .M.o:
+ @echo -n 'Compiling $@ ...'