Add support for passing extra LDFLAGS to qemu's configure
PATCH 1/1 Add support for passing extra LDFLAGS to qemu's configure
There are cases[1] where you want to be able to pass more ldflags to qemu's configure. This lets you set LDFLAGS to accomplish that
Jeremy
[1] Such as with the new build-id support in binutils so that you can pass --build-id to the linker while still building with the old compiler as needed for qemu
configure renamed from configure.ldflags +1 -1
@@ -83,7 +83,7 @@ target_cpu() { (cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir") (cd qemu; ./configure --target-list=$(target_cpu)-softmmu --cc="$qemu_cc" \ --disable-kqemu --extra-cflags="-I $PWD/../user" \ - --extra-ldflags="-L $PWD/../user" \ + --extra-ldflags="-L $PWD/../user $LDFLAGS" \ --enable-kvm --kernel-path="$libkvm_kerneldir" \ --enable-alsa \ ${disable_gcc_check:+"--disable-gcc-check"} \
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel
Quoted 16 lines · Jeremy Katz
There are cases[1] where you want to be able to pass more ldflags to qemu's configure. This lets you set LDFLAGS to accomplish that
Signed-off-by Jeremy Katz <[email protected]>Jeremy
[1] Such as with the new build-id support in binutils so that you can pass --build-id to the linker while still building with the old compiler as needed for qemu
diff -up kvm-35/configure.ldflags kvm-35/configure
configure target_cpu() { · line 89
Quoted 8 lines
configure renamed from configure.ldflags +1
-1@@ -83,7 +83,7 @@ target_cpu() { (cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir") (cd qemu; ./configure --target-list=$(target_cpu)-softmmu --cc="$qemu_cc" \ --disable-kqemu --extra-cflags="-I $PWD/../user" \ - --extra-ldflags="-L $PWD/../user" \ + --extra-ldflags="-L $PWD/../user $LDFLAGS" \ --enable-kvm --kernel-path="$libkvm_kerneldir" \ --enable-alsa \ ${disable_gcc_check:+"--disable-gcc-check"} \
I utterly dislike slurping build options from the environment. Please provide an explicit option. Counterexamples in current code will not help.
Signature · 8 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/