]> Git Repo - buildroot-mgba.git/commitdiff
Define HOSTLN to allow gzip to build for non-x86 target
authorUlf Samuelsson <[email protected]>
Sun, 15 Jul 2007 21:54:11 +0000 (21:54 -0000)
committerUlf Samuelsson <[email protected]>
Sun, 15 Jul 2007 21:54:11 +0000 (21:54 -0000)
Makefile
package/gzip/gzip.mk

index 483b809cc0cf9d0ebe5995315fee3c2e4fecd615..65752ea95f220206c92b44a1612f3c2aacc5e7b6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -79,11 +79,15 @@ endif
 ifndef HOSTLD
 HOSTLD:=ld
 endif
+ifndef HOSTLN
+HOSTLN:=ln
+endif
 HOSTAR :=$(shell $(CONFIG_SHELL) -c "which $(HOSTAR)"  || type -p $(HOSTAR)  || echo ar)
 HOSTAS :=$(shell $(CONFIG_SHELL) -c "which $(HOSTAS)"  || type -p $(HOSTAS)  || echo as)
 HOSTCC :=$(shell $(CONFIG_SHELL) -c "which $(HOSTCC)"  || type -p $(HOSTCC)  || echo gcc)
 HOSTCXX:=$(shell $(CONFIG_SHELL) -c "which $(HOSTCXX)" || type -p $(HOSTCXX) || echo g++)
 HOSTLD :=$(shell $(CONFIG_SHELL) -c "which $(HOSTLD)"  || type -p $(HOSTLD)  || echo ld)
+HOSTLN :=$(shell $(CONFIG_SHELL) -c "which $(HOSTLN)"  || type -p $(HOSTLN)  || echo ln)
 ifndef CFLAGS_FOR_BUILD
 CFLAGS_FOR_BUILD:=-g -O2
 endif
index 9f4fb8fc48e1e219b83c2a42b9e02b97dfada5ef..9503dd02928dbfc7438bba46eb5b08fd3476ff37 100644 (file)
@@ -53,11 +53,11 @@ $(GZIP_TARGET_BINARY): $(GZIP_BINARY)
        rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
                $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
        (cd $(TARGET_DIR)/bin; \
-       ln -snf gzip gunzip; \
-       ln -snf gzip zcat; \
-       ln -snf zdiff zcmp; \
-       ln -snf zgrep zegrep; \
-       ln -snf zgrep zfgrep;)
+       $(HOSTLN) -snf gzip gunzip; \
+       $(HOSTLN) -snf gzip zcat; \
+       $(HOSTLN) -snf zdiff zcmp; \
+       $(HOSTLN) -snf zgrep zegrep; \
+       $(HOSTLN) -snf zgrep zfgrep;)
 
 gzip: uclibc $(GZIP_TARGET_BINARY)
 
This page took 0.036948 seconds and 4 git commands to generate.