File: 0003-Pass-LDFLAGS-to-the-linker.patch

package info (click to toggle)
libkaz 1.21-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 544 kB
  • sloc: ansic: 4,323; cpp: 70; makefile: 17; perl: 10
file content (21 lines) | stat: -rw-r--r-- 704 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Balint Reczey <balint@balintreczey.hu>
Date: Sun, 25 May 2025 23:31:57 +0200
Subject: Pass LDFLAGS to the linker

---
 Makefile.gcc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.gcc b/Makefile.gcc
index a650d7c..11f86c1 100644
--- a/Makefile.gcc
+++ b/Makefile.gcc
@@ -77,7 +77,7 @@ $(SLIB): $(OBJS)
 	ar rcs $@ $^
 
 $(DLIB): $(SLIB)
-	$(CC) -shared -Wl,-soname,$(patsubst %.so.$(SO_VERSION),%.so.1,$@) -Wl,--whole-archive,$< -Wl,--no-whole-archive -o $@ 
+	$(CC) $(LDFLAGS) -shared -Wl,-soname,$(patsubst %.so.$(SO_VERSION),%.so.1,$@) -Wl,--whole-archive,$< -Wl,--no-whole-archive -o $@ 
 
 CLEAN += docs.dvi docs.aux docs.log
 docs.dvi: docs.ltx docs.toc docs.ind