| 12
 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
 
 | Subject: patch qmake for hardening + removing win/mac cruft
Author: Olivier Sallou <osallou@debian.org>
        Gert Wollny <gw.fossdev@gmail.com> 
Description: add QMAKE flags to add hardening
 Also remove parameters for win32 and macx because they seem to 
 irritate the build system.  Merged into this patch, because they 
 overlap. 
Last-Updated: 2015-12-10
Forwarded: not-needed
--- a/src/ugene_globals.pri
+++ b/src/ugene_globals.pri
@@ -22,6 +22,11 @@
 #  use -Wl,-rpath to locate dependencies for own libraries.
 unix:!macx: CONFIG += unversioned_libname unversioned_soname
 
+CFLAGS   += $(CFLAGS)
+CXXFLAGS += $(CXXFLAGS)
+LDFLAGS  += $(LDFLAGS)
+CPPFLAGS += $(CPPFLAGS)
+
 #win32 : CONFIG -= flat  #group the files within the source/header group depending on the directory they reside in file system
 win32 : QMAKE_CXXFLAGS += /MP # use parallel build with nmake
 win32 : DEFINES+= _WINDOWS
@@ -113,6 +118,10 @@
     QMAKE_LFLAGS += "-Wl,--no-undefined"
 }
 
+QMAKE_CXXFLAGS += $$(CXXFLAGS)
+QMAKE_CFLAGS += $$(CFLAGS)
+QMAKE_LFLAGS += $$(LDFLAGS)
+
 isEmpty(PREFIX): PREFIX  = dist/ugene-$${UGENE_VERSION}
 
 
 |