]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
ccache: Fix vendor tuple.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Feb 2011 22:42:44 +0000 (23:42 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Feb 2011 22:42:44 +0000 (23:42 +0100)
pkgs/core/ccache/ccache.nm

index 375d23b00798065cf64650858c94a30124949c78..3ebfbc323bd63fca1920e674424ed033efa15a11 100644 (file)
@@ -26,7 +26,7 @@ include $(PKGROOT)/Include
 
 PKG_NAME       = ccache
 PKG_VER        = 3.1.4
-PKG_REL        = 1
+PKG_REL        = 2
 
 PKG_MAINTAINER =
 PKG_GROUP      = Development/Compilers
@@ -36,6 +36,8 @@ PKG_SUMMARY    = C/C++ compiler cache.
 
 PKG_BUILD_DEPS+= perl zlib-devel
 
+CCACHE_PLATFORM_TARGET = $(subst -gnu,,$(DISTRO_MACHINE))
+
 define PKG_DESCRIPTION
        ccache is a compiler cache.  It acts as a caching pre-processor to \
        C/C++ compilers, using the -E compiler switch and a hash to detect \
@@ -66,7 +68,7 @@ define STAGE_INSTALL_CMDS
        mkdir -pv $(BUILDROOT)/usr/lib/ccache
        for i in gcc g++ cc c++; do \
                ln -svf ../../bin/ccache $(BUILDROOT)/usr/lib/ccache/$${i}; \
-               ln -svf ../../bin/ccache $(BUILDROOT)/usr/lib/ccache/$(DISTRO_MACHINE)-$${i}; \
+               ln -svf ../../bin/ccache $(BUILDROOT)/usr/lib/ccache/$(CCACHE_PLATFORM_TARGET)-$${i}; \
        done
 
        -mkdir -pv $(BUILDROOT)/etc/profile.d