File: use-ldflags-when-building-reglib.patch

package info (click to toggle)
crda 4.14%2Bgit20191112.9856751-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 568 kB
  • sloc: ansic: 2,599; makefile: 195; python: 130; sh: 6
file content (19 lines) | stat: -rw-r--r-- 625 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From: Ben Hutchings <benh@debian.org>
Date: Tue, 31 Mar 2020 21:28:37 +0100
Subject: Use $(LDFLAGS) when building reglib

$(LDFLAGS) should be used when building shared libraries as well as
when building executables.

---
--- a/Makefile
+++ b/Makefile
@@ -125,7 +125,7 @@ keys-%.c: utils/key2pub.py $(wildcard $(
 
 $(LIBREG): reglib.c regdb.h reglib.h
 	$(NQ) '  CC  ' $@
-	$(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $< $(LIBREGLDLIBS)
+	$(Q)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $< $(LIBREGLDLIBS)
 
 install-libreg-headers:
 	$(NQ) '  INSTALL  libreg-headers'