File: ld-as-needed

package info (click to toggle)
sift 4.0.3b-6
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, bullseye, buster
  • size: 173,544 kB
  • sloc: perl: 37,171; ansic: 8,322; csh: 1,829; sh: 120; makefile: 86
file content (27 lines) | stat: -rw-r--r-- 1,062 bytes parent folder | download | duplicates (2)
1
2
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
Description: src/Makefile patch
 [Michael Bienia]
 As sift fails to link with ld --as-needed, I had to patch src/Makefile
 to fix it. While at it I've also added support for dpkg-buildflags to
 use in CFLAGS and LDFLAGS.
 [Laszlo Kajan]
 Added dpkg-buildflags to CPPFLAGS.
 Michael's explicit $(BIN) rule is made unnecessary by using LDLIBS instead
 of his LIBS, as LDLIBS get used by the implicit make rules and achieves the
 same result.
Author: Michael Bienia <geser@ubuntu.com>
Author: Laszlo Kajan <lkajan@rostlab.org>
--- a/src/Makefile
+++ b/src/Makefile
@@ -9,8 +9,10 @@
 	seqs_from_psiblast_res
 
 CC := gcc
-CFLAGS := -I$(include-prefix)/include/blimps -O2 -D__MAKE_PREFIX__=\"$(prefix)\" $(CFLAGS)
-LDFLAGS := -L$(lib-prefix)/lib -lblimps $(LDFLAGS)
+CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS := $(shell dpkg-buildflags --get CFLAGS) -Wno-unused-result -I$(include-prefix)/include/blimps -O2 -D__MAKE_PREFIX__=\"$(prefix)\"
+LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -L$(lib-prefix)/lib
+LDLIBS := -lblimps -lm
 
 all: bin