patch-lib_Makefile 785 B

1234567891011121314151617181920212223242526
  1. --- bitlbee-3.0.1.orig/lib/Makefile 2010-11-24 23:44:00.000000000 +0100
  2. +++ bitlbee-3.0.1/lib/Makefile 2011-03-03 22:39:24.000000000 +0100
  3. @@ -14,7 +14,7 @@ endif
  4. # [SH] Program variables
  5. 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
  6. -LFLAGS += -r
  7. +LFLAGS += -Wl,-r -nostdlib
  8. # [SH] Phony targets
  9. all: lib.o
  10. @@ -35,12 +35,12 @@ distclean: clean $(subdirs)
  11. lib.o: $(objects) $(subdirs)
  12. @echo '*' Linking lib.o
  13. - @$(LD) $(LFLAGS) $(objects) -o lib.o
  14. + $(CC) $(LFLAGS) $(objects) -o lib.o
  15. $(objects): ../Makefile.settings Makefile
  16. $(objects): %.o: $(SRCDIR)%.c
  17. @echo '*' Compiling $<
  18. - @$(CC) -c $(CFLAGS) $< -o $@
  19. + $(CC) -c $(CFLAGS) $< -o $@
  20. -include .depend/*.d