On Thu, Jan 03, 2008 at 09:30:06AM -0800, ron minnich wrote:
> Add the ability to extend CFLAGS as needed for several new distros
> Signed-off-by: Ronald G. Minnich <[EMAIL PROTECTED]>

Acked-by: Peter Stuge <[EMAIL PROTECTED]>

> Index: targets/buildtarget
> ===================================================================
> --- targets/buildtarget       (revision 3031)
> +++ targets/buildtarget       (working copy)
> @@ -53,4 +53,25 @@
>  export PYTHONPATH=$config_dir
>  $PYTHON $config_py $config_lb $lbpath
>  
> +# now start checking for distro-specific breakage. 
> +## This check is for the no stack protector mess.
> +EXTRA_CFLAGS=
> +
> +if [ -z "$CC" ]; then
> +       CC=gcc
> +fi
> +
> +$CC -fno-stack-protector -S -xc /dev/null -o .$$.tmp
> +
> +if [ $? -eq 0 ]; then
> +       EXTRA_CFLAGS=-fno-stack-protector
> +fi
> +
> +rm -rf .$$.tmp
> +
> +for i in $build_dir/Makefile.settings $build_dir/*/Makefile.settings
> +do
> +     echo CFLAGS+=$EXTRA_CFLAGS >>$i
> +done
> +
>  exit $?

-- 
linuxbios mailing list
linuxbios@linuxbios.org
http://www.linuxbios.org/mailman/listinfo/linuxbios

Reply via email to