瀏覽代碼

fix compile for mips64

Waldemar Brodkorb 14 年之前
父節點
當前提交
2dc4319c28
共有 2 個文件被更改,包括 13 次插入2 次删除
  1. 2 2
      package/elinks/Makefile
  2. 11 0
      package/elinks/patches/patch-Makefile_lib

+ 2 - 2
package/elinks/Makefile

@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
 
 PKG_NAME:=		elinks
 PKG_VERSION:=		0.11.7
-PKG_RELEASE:=		2
+PKG_RELEASE:=		3
 PKG_MD5SUM:=		145c510cae41c204d0f23dce4bdd23ab
 PKG_DESCR:=		advanced text web browser
 PKG_SECTION:=		text
@@ -44,7 +44,7 @@ CONFIGURE_ARGS+=	--enable-small \
 			--without-spidermonkey \
 			--without-x \
 			--without-zlib
-MAKE_FLAGS+=		CC='${TARGET_CC}' LD='${TARGET_LD}'
+MAKE_FLAGS+=		CC='${TARGET_CC}'
 
 do-install:
 	${INSTALL_DIR} ${IDIR_ELINKS}/usr/bin

+ 11 - 0
package/elinks/patches/patch-Makefile_lib

@@ -0,0 +1,11 @@
+--- elinks-0.11.7.orig/Makefile.lib	2009-08-22 13:15:08.000000000 +0200
++++ elinks-0.11.7/Makefile.lib	2010-03-06 11:28:58.000000000 +0100
+@@ -43,7 +43,7 @@ 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 = $(CC) -Wl,-r -nostdlib -o $@ $(filter $(OBJS), $^) \
+       		    $(foreach subdir,$(sort $(filter-out src,$(SUBDIRS))), \
+ 			    `test -e $(subdir)/$(LIB_O_NAME) && echo $(subdir)/$(LIB_O_NAME)`)
+