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
|