Commit 4bb453e2 authored by Graham Inggs's avatar Graham Inggs

Pass CXXFLAGS and LDFLAGS to enable build hardening

parent 83acc25e
......@@ -14,6 +14,7 @@ qutemol (0.4.1~cvs20081111-4) UNRELEASED; urgency=low
* Build-depend on libpng-dev instead of libpng12-dev. (Closes: #662487)
* Fix a spelling mistake in qutemol manpage.
* Remove obsolete DM-Upload-Allowed field.
* Pass CXXFLAGS and LDFLAGS to enable build hardening.
-- Michael Banck <mbanck@debian.org> Sun, 06 Oct 2013 18:50:04 +0200
......
......@@ -13,7 +13,7 @@ Subject: modification to source code
-CXXFLAGS = $(INCDIRS) $(OPTFLAGS) `wx-config --cppflags`
-LIBS = $(CXXFLAGS) `wx-config --libs core,base --gl-libs` -lGLEW -lGLU -lGL
+CXXFLAGS = -DPKGDATADIR='"/usr/share/qutemol/"' $(INCDIRS) $(OPTFLAGS) `wx-config --cppflags`
+LIBS = $(CXXFLAGS) `wx-config --libs core,base --gl-libs` -lGLEW -lGLU -lGL -lgif -lpng
+LIBS = $(CXXFLAGS) $(LDFLAGS) `wx-config --libs core,base --gl-libs` -lGLEW -lGLU -lGL -lgif -lpng
OBJS = \
src/AO.o \
......
......@@ -7,6 +7,7 @@ INCDIRS = -Ivcg -Isrc -I.
# Define NDEBUG to quietly ignore WXDEBUG assertion failures (as happens by
# default under wx2.8).
CXXFLAGS = -DPKGDATADIR='\"/usr/share/qutemol\"' $(INCDIRS) $(OPTFLAGS) `wx-config --cppflags` -DNDEBUG
CXXFLAGS += `dpkg-buildflags --get CXXFLAGS`
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/rules/debhelper.mk
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment