From 88c3facf6167c0dcbf68ed5185a9916cb5a95c5f Mon Sep 17 00:00:00 2001 From: Wesley Shields Date: Thu, 27 Sep 2012 02:57:50 +0000 Subject: [PATCH] Fix build on i386 by disabling hardening measures. This is a temporary fix until I can figure out what is really going on. --- security/sudo/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/security/sudo/Makefile b/security/sudo/Makefile index 95bd1ca29491..fb4df6a664f6 100644 --- a/security/sudo/Makefile +++ b/security/sudo/Makefile @@ -20,7 +20,7 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept MAKE_JOBS_SAFE= yes GNU_CONFIGURE= yes -LDFLAGS+= -lgcc +LDFLAGS+= -lgcc CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \ --with-ignore-dot \ @@ -99,6 +99,14 @@ CONFIGURE_ARGS+=--with-bsm-audit CONFIGURE_ARGS+=--with-opie .endif +.include + +# Temporary workaround until I can figure out why the build fails on i386. +# You can add --stack-protector to LDFLAGS but that doesn't work with clang. +.if ${ARCH} == "i386" +CONFIGURE_ARGS+= --disable-hardening +.endif + MAN5+= sudoers.5 MAN8= sudo.8 visudo.8 sudoreplay.8 sudo_plugin.8 MLINKS= sudo.8 sudoedit.8 @@ -126,4 +134,4 @@ post-install: fi ${TOUCH} ${PREFIX}/etc/sudoers.d/.keep-me -.include +.include