Source: dascrubber
Version: 0~20160601-1
Severity: wishlist
Tags: patch
Hi Maintainer
Dascrubber FTBFS when linked with -Wl,--as-needed, the default in Ubuntu.
The attached updated compiler-flags.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: Allow additional compiler and linker flags
Author: Afif Elghraoui <[email protected]>
Forwarded: no
Last-Update: 2016-10-20
Author: Graham Inggs <[email protected]>
last-Update: 2016-12-10
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,17 @@
DEST_DIR = ~/bin
-CFLAGS = -O3 -Wall -Wextra -Wno-unused-result -fno-strict-aliasing
+CFLAGS += -O3 -Wall -Wextra -Wno-unused-result -fno-strict-aliasing
+LIBS = -lm
ALL = DASqv DAStrim
all: $(ALL)
DASqv: DASqv.c align.c align.h DB.c DB.h QV.c QV.h
- gcc $(CFLAGS) -o DASqv DASqv.c align.c DB.c QV.c -lm
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o DASqv DASqv.c align.c DB.c QV.c $(LIBS)
DAStrim: DAStrim.c align.c align.h DB.c DB.h QV.c QV.h
- gcc $(CFLAGS) -o DAStrim DAStrim.c align.c DB.c QV.c -lm
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o DAStrim DAStrim.c align.c DB.c QV.c $(LIBS)
clean:
rm -f $(ALL)