~wdconinc/ubuntu/xenial/geant4/master

« back to all changes in this revision

Viewing changes to debian/patches/set-Debian-Policy-compiler-flags.diff

  • Committer: Wouter Deconinck
  • Date: 2017-06-26 20:34:12 UTC
  • Revision ID: wdconinc@gmail.com-20170626203412-qtema3bocqhrzv6k
Add patches through quilt

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- a/config/sys/Linux-g++.gmk
 
2
+++ b/config/sys/Linux-g++.gmk
 
3
@@ -24,14 +24,14 @@
 
4
     CXXFLAGS += -ftls-model=initial-exec -pthread
 
5
   endif
 
6
   ifdef G4OPTIMISE
 
7
-    CXXFLAGS  += -O3
 
8
-    FCFLAGS   := -O3
 
9
-    CCFLAGS   := -O3
 
10
+    CXXFLAGS  += -O3 -g
 
11
+    FCFLAGS   := -O3 -g
 
12
+    CCFLAGS   := -O3 -g
 
13
   else
 
14
     ifdef G4DEBUG
 
15
-      CXXFLAGS  += -g
 
16
-      FCFLAGS   := -g
 
17
-      CCFLAGS   := -g
 
18
+      CXXFLAGS  += -O0 -g
 
19
+      FCFLAGS   := -O0 -g
 
20
+      CCFLAGS   := -O0 -g
 
21
     endif
 
22
   endif
 
23
   ifdef G4PROFILE