File: src-Makefile.in-Use-LDFLAGS-when-building-so-file.patch

package info (click to toggle)
lcrq 0.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 52,776 kB
  • sloc: ansic: 10,437; sh: 3,113; makefile: 183
file content (26 lines) | stat: -rw-r--r-- 790 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
22
23
24
25
26
From e6feb3fe5c26c5e63ad3dfcba217773161aef85a Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@debian.org>
Date: Sun, 31 Jul 2022 18:20:12 -0700
Subject: [PATCH] src/Makefile.in: Use LDFLAGS when building .so file.
Bug: https://codeberg.org/librecast/lcrq/pulls/2

---
 src/Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile.in b/src/Makefile.in
index f8e832b..1204995 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -25,7 +25,7 @@ ABIFILES := $(foreach f,$(SOFILES),$f.$(ABIVERS))
 all: $(SOFILES)
 
 lib$(LIBNAME).so: $(OBJECTS)
-	$(CC) $(CFLAGS) -shared -Wl,-soname,lib$(LIBNAME).so.$(ABIVERS) -o $@ $^
+	$(CC) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname,lib$(LIBNAME).so.$(ABIVERS) -o $@ $^
 
 %.o: %.c %.h $(HEADERS)
 
-- 
2.35.1