sandbox: disable fortification
authorMike Frysinger <vapier@gentoo.org>
Sun, 26 Feb 2012 21:00:26 +0000 (16:00 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 12 Mar 2012 15:03:43 +0000 (11:03 -0400)
Since we provide all our own library calls, the fortification from
glibc just gets in our way (which some distros enable by default).

Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/sandbox/config.mk

index 2ec1bb772bd7beeb21b52bdcb404f414b5d798ed..02ce4a44109b3d712f9b4ad4c29206ef662696d1 100644 (file)
@@ -17,5 +17,5 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 
-PLATFORM_CPPFLAGS += -DCONFIG_SANDBOX -D__SANDBOX__
+PLATFORM_CPPFLAGS += -DCONFIG_SANDBOX -D__SANDBOX__ -U_FORTIFY_SOURCE
 PLATFORM_LIBS += -lrt