From 4af79953d21977baa33adf1b53892e7bd9949515 Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 5 Jun 2011 18:23:43 +0000 Subject: [PATCH] automatically add -fplugin=dragonegg if not there --- Build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Build.sh b/Build.sh index 3da6ce6..08b5a82 100644 --- a/Build.sh +++ b/Build.sh @@ -1,5 +1,5 @@ #!/bin/sh -srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.479 2011/06/05 18:16:19 tg Exp $' +srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.480 2011/06/05 18:23:43 tg Exp $' #- # Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 # Thorsten Glaser @@ -898,6 +898,10 @@ if test $ct = gcc; then ac_flags 1 fnostrictaliasing -fno-strict-aliasing ac_flags 1 fstackprotectorall -fstack-protector-all ac_flags 1 fwrapv -fwrapv + test $cm = dragonegg && case " $CC $CFLAGS $LDFLAGS " in + *\ -fplugin=*dragonegg*) ;; + *) ac_flags 1 fplugin_dragonegg -fplugin=dragonegg ;; + esac if test $cm = lto; then fv=0 checks='1 2 3 4 5 6 7 8'