summaryrefslogtreecommitdiff
path: root/package/bitlbee/patches/patch-protocols_jabber_Makefile
blob: 3eca971988b70d2a89d1446b8dbdf92cecc6e127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- bitlbee-3.6.orig/protocols/jabber/Makefile	2019-02-07 20:53:38.000000000 +0100
+++ bitlbee-3.6/protocols/jabber/Makefile	2024-02-14 17:50:47.363530697 +0100
@@ -14,7 +14,7 @@ endif
 # [SH] Program variables
 objects = conference.o io.o iq.o jabber.o jabber_util.o message.o presence.o s5bytestream.o sasl.o si.o hipchat.o
 
-LFLAGS += -r
+LFLAGS += -Wl,-r -nostdlib
 
 # [SH] Phony targets
 all: jabber_mod.o
@@ -41,6 +41,6 @@ $(objects): %.o: $(_SRCDIR_)%.c
 
 jabber_mod.o: $(objects)
 	@echo '*' Linking jabber_mod.o
-	$(VERBOSE) $(LD) $(LFLAGS) $(objects) -o jabber_mod.o
+	$(VERBOSE) $(CC) $(LFLAGS) $(objects) -o jabber_mod.o
 
 -include .depend/*.d