summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2012-09-16 20:46:35 +0000
committerkettenis <kettenis@openbsd.org>2012-09-16 20:46:35 +0000
commitb0cdb75a81fbfe55be54106635c598d306ed8823 (patch)
tree9dd57e79d1102497b90d561fe7103d5b4ad9fef7
parentAdd support for building non-PIE libraries. (diff)
downloadwireguard-openbsd-b0cdb75a81fbfe55be54106635c598d306ed8823.tar.xz
wireguard-openbsd-b0cdb75a81fbfe55be54106635c598d306ed8823.zip
Build gcc as non-PIE. PIE breaks precompiled headers and causes a serious
performance hit on some architectures (almost 20% on hppa, more than 25% on sparc64). And there are no real benefits associated with ASLR for a compiler. ok deraadt@
-rw-r--r--gnu/usr.bin/cc/Makefile.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc
index 96a127c109c..ba18fb63649 100644
--- a/gnu/usr.bin/cc/Makefile.inc
+++ b/gnu/usr.bin/cc/Makefile.inc
@@ -1,5 +1,5 @@
# $FreeBSD: src/gnu/usr.bin/cc/Makefile.inc,v 1.66.8.1 2009/04/15 03:14:26 kensmith Exp $
-# $OpenBSD: Makefile.inc,v 1.5 2012/08/28 18:59:28 pascal Exp $
+# $OpenBSD: Makefile.inc,v 1.6 2012/09/16 20:46:35 kettenis Exp $
.include "../Makefile.inc"
@@ -20,6 +20,8 @@ GCCDIR= ${GCCLIB}/gcc
MD_FILE= ${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.md
GCC_TARGET= ${TARGET_ARCH}-unknown-openbsd${OSREV}
+NOPIE= Yes
+
CFLAGS+= -DIN_GCC -DHAVE_CONFIG_H
CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}/usr\"
#CFLAGS+= -DWANT_COMPILER_INVARIANTS