patch-Makefile_lib 961 B

1234567891011121314151617
  1. --- elinks-0.11.7.orig/Makefile.lib 2009-08-22 13:15:08.000000000 +0200
  2. +++ elinks-0.11.7/Makefile.lib 2009-08-28 12:26:30.526558172 +0200
  3. @@ -43,12 +43,12 @@ quiet_cmd_compile = ' [$(CC_COLOR)C
  4. # Rule to compile a set of .o files into one .o file
  5. quiet_cmd_ld_objs = " [$(LD_COLOR)LD$(END_COLOR)] $(RELPATH)$@"
  6. - cmd_ld_objs = $(LD) -r -o $@ $(filter $(OBJS), $^) \
  7. + cmd_ld_objs = $(LD) -shared -o $@ $(filter $(OBJS), $^) \
  8. $(foreach subdir,$(sort $(filter-out src,$(SUBDIRS))), \
  9. `test -e $(subdir)/$(LIB_O_NAME) && echo $(subdir)/$(LIB_O_NAME)`)
  10. quiet_cmd_link = ' [$(LINK_COLOR)LINK$(END_COLOR)] $(RELPATH)$@'
  11. - cmd_link = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
  12. + cmd_link = $(CC) -shared $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
  13. quiet_cmd_sparse = ' [SPARSE] $(RELPATH)$(2)'
  14. cmd_sparse = $(SPARSE) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(SPARSE_FLAGS) $(2)