Message ID | 1433321798-13398-1-git-send-email-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show |
Applied to -trivial, thanks! The other nearby case, --extra-ldflags, also wants this reordering :) /mjt
Michael Tokarev <mjt@tls.msk.ru> writes: > Applied to -trivial, thanks! > > The other nearby case, --extra-ldflags, also wants this reordering :) sent One day I'll find a use for such a thing but fortunately my default build environment has everything I need ;-) > > /mjt
diff --git a/configure b/configure index b707429..f13831a 100755 --- a/configure +++ b/configure @@ -353,7 +353,7 @@ for opt do ;; --cpu=*) cpu="$optarg" ;; - --extra-cflags=*) QEMU_CFLAGS="$optarg $QEMU_CFLAGS" + --extra-cflags=*) QEMU_CFLAGS="$QEMU_CFLAGS $optarg" EXTRA_CFLAGS="$optarg" ;; --extra-ldflags=*) LDFLAGS="$optarg $LDFLAGS"
It makes sense that extra-cflags should be appended after the normal CFLAGS so they don't get overridden by default behaviour. This way if you specify something like: ./configure --extra-cflags="-O0" You will see the requested behaviour. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)