Source: parsnp Version: 1.2+dfsg-1 Severity: wishlist Tags: patch Hi Maintainer
Parsnp FTBFS when linked with -Wl,--as-needed, the default in Ubuntu. The attached patch fixes the build by adding libraries in LIBS instead of LDFLAGS which changes the order they appear on the gcc command line. Regards Graham
Description: Fix build with -Wl,--as-needed Move -std=gnu++0x to CXXFLAGS and add libraries in LIBS instead of LDFLAGS. Author: Graham Inggs <gin...@debian.org> Last-Update: 2016-11-23 --- 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