File: fix_build_with_as-needed.patch

package info (click to toggle)
parsnp 1.2%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,280 kB
  • ctags: 560
  • sloc: cpp: 3,859; python: 1,243; ansic: 937; makefile: 22; sh: 21
file content (17 lines) | stat: -rw-r--r-- 872 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix build with -Wl,--as-needed
 Move -std=gnu++0x to CXXFLAGS and add libraries
 in LIBS instead of LDFLAGS.
Author: Graham Inggs <ginggs@debian.org>
Last-Update: 2016-11-23
Bug-Debian: https://bugs.debian.org/845415

--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,5 +1,5 @@
-parsnp_CXXFLAGS = -O3 -fopenmp -funroll-all-loops -fomit-frame-pointer -ftree-vectorize 
-parsnp_LDFLAGS = -lgomp -lstdc++ -lpthread -std=gnu++0x -L$(libmuscle)/lib -lMUSCLE-3.7 
+parsnp_CXXFLAGS = -O3 -fopenmp -funroll-all-loops -fomit-frame-pointer -ftree-vectorize -std=gnu++0x
+LIBS = -lgomp -lstdc++ -lpthread -L$(libmuscle)/lib -lMUSCLE-3.7
 bin_PROGRAMS = parsnp
 parsnp_SOURCES = MuscleInterface.cpp MuscleInterface.h parsnp.cpp parsnp.hh LCB.cpp LCB.hh LCR.cpp LCR.hh TMum.cpp TMum.hh Converter.cpp Converter.hh ./ext/iniFile.cpp ./ext/iniFile.h 
 bindir = $(prefix)/bin