]> git.proxmox.com Git - pve-kernel-2.6.32.git/commitdiff
Test whether CC is defined and use this otherwise use default
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 14 Jul 2014 11:00:50 +0000 (13:00 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 14 Jul 2014 11:00:50 +0000 (13:00 +0200)
Note: original patch from 'mir'.

Makefile

index cdbdc5b5e8710d258feebb68289e5b5e011b5e3e..e581a965d5923077848d1797f114ca7eedd66583 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -78,8 +78,12 @@ ${PVE_DEB} pve: proxmox-ve/control proxmox-ve/postinst
        gzip --best proxmox-ve/data/usr/share/doc/${PVEPKG}/changelog.Debian
        dpkg-deb --build proxmox-ve/data ${PVE_DEB}
 
-check_gcc: 
+check_gcc:
+ifeq ($(CC), cc)
        gcc --version|grep "4\.7\.2" || false
+else
+       $(CC) --version|grep "4\.7" || false
+endif
 
 ${DST_DEB}: data control.in postinst.in
        mkdir -p data/DEBIAN