[pve-devel] [PATCH] Test whether CC is defined and use this otherwise use default

mir at datanom.net mir at datanom.net
Wed Jul 9 22:03:07 CEST 2014


From: Michael Rasmussen <mir at datanom.net>

Signed-off-by: Michael Rasmussen <mir at datanom.net>
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 3e2c1bc..823d842 100644
--- a/Makefile
+++ b/Makefile
@@ -70,7 +70,11 @@ PVE_DEB=${PVEPKG}_${RELEASE}-${PKGREL}_all.deb
 all: check_gcc ${DST_DEB} ${FW_DEB} ${HDR_DEB}
 
 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 copyright changelog.Debian
 	mkdir -p data/DEBIAN
-- 
2.0.1


----

This mail was virus scanned and spam checked before delivery.
This mail is also DKIM signed. See header dkim-signature.



More information about the pve-devel mailing list