From e2b713b44c5ef331a175db86fad7324e151ef210 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 9 May 2006 18:52:35 +0000 Subject: Disable ProPolice on DragonFly, it breaks the linkage of the standalone modules. --- sysutils/grub/hacks.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sysutils/grub/hacks.mk (limited to 'sysutils') diff --git a/sysutils/grub/hacks.mk b/sysutils/grub/hacks.mk new file mode 100644 index 00000000000..0c14ca1ccd7 --- /dev/null +++ b/sysutils/grub/hacks.mk @@ -0,0 +1,18 @@ +# $NetBSD: hacks.mk,v 1.1 2006/05/09 18:52:35 joerg Exp $ + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "DragonFly" && ${PKGSRC_COMPILER} == "gcc" +# +# The standalone modules doesn't support propolice. +# +.if !defined(HAS_PROPOLICE) +HAS_PROPOLICE!= ( ${CC} -v 2>&1 | ${GREP} 'propolice' ) 2>/dev/null || echo no +MAKEVARS+= HAS_PROPOLICE +.endif + +.if ${HAS_PROPOLICE} != "no" +CFLAGS+= -fno-stack-protector +CXXFLAGS+= -fno-stack-protector +.endif +.endif -- cgit v1.2.3