diff options
author | joerg <joerg@pkgsrc.org> | 2006-05-09 18:52:35 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-05-09 18:52:35 +0000 |
commit | e2b713b44c5ef331a175db86fad7324e151ef210 (patch) | |
tree | 3f7f9dc5fe14082b7c011787925545cad057f424 /sysutils | |
parent | 2b2ab761c9624e955914bdab8cbe02eaf3705da6 (diff) | |
download | pkgsrc-e2b713b44c5ef331a175db86fad7324e151ef210.tar.gz |
Disable ProPolice on DragonFly, it breaks the linkage of the standalone
modules.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/grub/hacks.mk | 18 |
1 files changed, 18 insertions, 0 deletions
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 |