summaryrefslogtreecommitdiff
path: root/package/bitlbee/patches/patch-lib_Makefile
blob: 3d15131d89a216367fa050e127466bd918bcb19c (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
--- bitlbee-3.0.1.orig/lib/Makefile	2010-11-24 23:44:00.000000000 +0100
+++ bitlbee-3.0.1/lib/Makefile	2011-03-03 22:39:24.000000000 +0100
@@ -14,7 +14,7 @@ endif
 # [SH] Program variables
 objects = arc.o base64.o $(DES) $(EVENT_HANDLER) ftutil.o http_client.o ini.o md5.o misc.o oauth.o proxy.o sha1.o $(SSL_CLIENT) url.o xmltree.o
 
-LFLAGS += -r
+LFLAGS += -Wl,-r -nostdlib
 
 # [SH] Phony targets
 all: lib.o
@@ -35,12 +35,12 @@ distclean: clean $(subdirs)
 
 lib.o: $(objects) $(subdirs)
 	@echo '*' Linking lib.o
-	@$(LD) $(LFLAGS) $(objects) -o lib.o
+	$(CC) $(LFLAGS) $(objects) -o lib.o
 
 $(objects): ../Makefile.settings Makefile
 
 $(objects): %.o: $(SRCDIR)%.c
 	@echo '*' Compiling $<
-	@$(CC) -c $(CFLAGS) $< -o $@
+	$(CC) -c $(CFLAGS) $< -o $@
 
 -include .depend/*.d