summaryrefslogtreecommitdiff
path: root/dev-libs/serdisplib/files/serdisplib-2.02-respect-ldflags.patch
blob: 6e66ba23833066ac63fd454627a269a85998c6d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -84,7 +84,7 @@
 
 # link shared or static lib to executables
 ifeq "@use_sharedlib@" "true"
-  LIB_SERDISP=-L$(LIB_DIR) -l$(LIB_NAME)
+  LIB_SERDISP=-L$(LIB_DIR) -l$(LIB_NAME) $(LDFLAGS)
 else
   LIB_SERDISP=$(LIB_DIR)/$(LIB_STATIC)
   # static execs also need to link to libraries in LDFLAGS
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -58,7 +58,7 @@
 
 # link shared or static lib to executables
 ifeq "@use_sharedlib@" "true"
-  LIB_SERDISP=-L$(LIB_DIR) -l$(LIB_NAME)
+  LIB_SERDISP=-L$(LIB_DIR) -l$(LIB_NAME) $(LDFLAGS)
 else
   LIB_SERDISP=$(LIB_DIR)/$(LIB_STATIC)
   # static execs also need to link to libraries in LDFLAGS