summarylogtreecommitdiffstats
path: root/baresip-flags.patch
blob: a21af1e92b172da6414cb777a64141e50ffe6a28 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- a/Makefile	2019-12-01 08:11:12.544634301 -0500
+++ b/Makefile	2019-12-01 08:15:27.660902785 -0500
@@ -192,7 +192,7 @@
 
 $(SHARED): $(LIB_OBJS)
 	@echo "  LD      $@"
-	$(HIDE)$(LD) $(LFLAGS) $(SH_LFLAGS) $^ -L$(LIBRE_SO) -lre $(LIBS) -o $@
+	$(HIDE)$(LD) $(LDFLAGS) $(LFLAGS) $(SH_LFLAGS) $^ -L$(LIBRE_SO) -lre $(LIBS) -o $@
 
 $(STATICLIB): $(LIB_OBJS)
 	@echo "  AR      $@"
@@ -217,7 +217,7 @@
 
 $(BIN):	$(APP_OBJS)
 	@echo "  LD      $@"
-	$(HIDE)$(LD) $(LFLAGS) $(APP_LFLAGS) $^ \
+	$(HIDE)$(LD) $(LDFLAGS) $(LFLAGS) $(APP_LFLAGS) $^ \
 		-L$(LIBRE_SO) -lre $(LIBS) -o $@
 
 
@@ -236,7 +236,7 @@
 
 $(TEST_BIN):	$(STATICLIB) $(TEST_OBJS) $(TEST_MODULES)
 	@echo "  LD      $@"
-	$(HIDE)$(LD) $(LFLAGS) $(APP_LFLAGS) $(TEST_OBJS) \
+	$(HIDE)$(LD) $(LDFLAGS) $(LFLAGS) $(APP_LFLAGS) $(TEST_OBJS) \
 		-L$(LIBRE_SO) -L. \
 		-l$(PROJECT) -lre $(LIBS) $(TEST_LIBS) -o $@
 
--- a/mk/mod.mk	2019-12-01 08:11:12.547967675 -0500
+++ b/mk/mod.mk	2019-12-01 08:12:51.572484780 -0500
@@ -33,7 +33,7 @@
 
 $(MOD)$(MOD_SUFFIX): $($(MOD)_OBJS)
 	@echo "  LD [M]  $@"
-	$(HIDE)$(LD) $(LFLAGS) $(SH_LFLAGS) $(MOD_LFLAGS) \
+	$(HIDE)$(LD) $(LDFLAGS) $(LFLAGS) $(SH_LFLAGS) $(MOD_LFLAGS) \
 		$($(basename $@)_OBJS) \
 		$($(basename $@)_LFLAGS) -L$(LIBRE_SO) -lre -o $@