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