summaryrefslogtreecommitdiff
path: root/sysutils/grub
diff options
context:
space:
mode:
authorjoerg <joerg>2006-05-09 18:52:35 +0000
committerjoerg <joerg>2006-05-09 18:52:35 +0000
commit58eb8f3d1b706af194fcc50abb3c1e2aefa28443 (patch)
tree3f7f9dc5fe14082b7c011787925545cad057f424 /sysutils/grub
parenta21c330639a6ad1149a896a9247d080951846c8c (diff)
downloadpkgsrc-58eb8f3d1b706af194fcc50abb3c1e2aefa28443.tar.gz
Disable ProPolice on DragonFly, it breaks the linkage of the standalone
modules.
Diffstat (limited to 'sysutils/grub')
-rw-r--r--sysutils/grub/hacks.mk18
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