Package: ebook2cwgui / 0.1.2-5

makefile-respect-CXX-and-flags.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: respect $(CXX), $(CPPFLAGS), $(CFLAGS), and $(LDFLAGS) overrides in Makefile
Author: Christoph Feenders <debian@echti.de>

--- ebook2cwgui-0.1.2.orig/Makefile
+++ ebook2cwgui-0.1.2/Makefile
@@ -8,8 +8,8 @@ override DESTDIR:=$(DESTDIR)/usr
 all: ebook2cwgui
 
 ebook2cwgui:
-	g++ ebook2cwgui.cpp about.cpp main.cpp \
-	       	-Wall `wx-config --libs --cxxflags` -o ebook2cwgui
+	$(CXX) $(CPPFLAGS) $(CFLAGS) ebook2cwgui.cpp about.cpp main.cpp \
+	       	-Wall `wx-config --libs --cxxflags` $(LDFLAGS) -o ebook2cwgui
 
 win32:
 	g++ -static ebook2cwgui.cpp about.cpp main.cpp \