summaryrefslogtreecommitdiff
path: root/package/bitlbee/patches/patch-protocols_twitter_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/bitlbee/patches/patch-protocols_twitter_Makefile')
-rw-r--r--package/bitlbee/patches/patch-protocols_twitter_Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/bitlbee/patches/patch-protocols_twitter_Makefile b/package/bitlbee/patches/patch-protocols_twitter_Makefile
new file mode 100644
index 000000000..b51c8d2e2
--- /dev/null
+++ b/package/bitlbee/patches/patch-protocols_twitter_Makefile
@@ -0,0 +1,24 @@
+--- bitlbee-3.0.1.orig/protocols/twitter/Makefile 2010-11-24 23:44:00.000000000 +0100
++++ bitlbee-3.0.1/protocols/twitter/Makefile 2011-03-03 22:42:34.000000000 +0100
+@@ -14,7 +14,7 @@ endif
+ # [SH] Program variables
+ objects = twitter.o twitter_http.o twitter_lib.o
+
+-LFLAGS += -r
++LFLAGS += -Wl,-r -nostdlib
+
+ # [SH] Phony targets
+ all: twitter_mod.o
+@@ -37,10 +37,10 @@ $(objects): ../../Makefile.settings Make
+
+ $(objects): %.o: $(SRCDIR)%.c
+ @echo '*' Compiling $<
+- @$(CC) -c $(CFLAGS) $< -o $@
++ $(CC) -c $(CFLAGS) $< -o $@
+
+ twitter_mod.o: $(objects)
+ @echo '*' Linking twitter_mod.o
+- @$(LD) $(LFLAGS) $(objects) -o twitter_mod.o
++ $(CC) $(LFLAGS) $(objects) -o twitter_mod.o
+
+ -include .depend/*.d