mirror of https://github.com/proxmox/mirror_qemu
Add -static earlier to LDFLAGS for compile_prog()
Add -static to LDFLAGS earlier as to run the compile_prog() tests with this flags, this will avoid turning on features for which a shared library is available but not a static one. Signed-off-by: Loïc Minier <lool@dooz.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>master
parent
845f2c2812
commit
7942769317
|
@ -488,7 +488,9 @@ for opt do
|
||||||
;;
|
;;
|
||||||
--enable-gprof) gprof="yes"
|
--enable-gprof) gprof="yes"
|
||||||
;;
|
;;
|
||||||
--static) static="yes"
|
--static)
|
||||||
|
static="yes"
|
||||||
|
LDFLAGS="-static $LDFLAGS"
|
||||||
;;
|
;;
|
||||||
--sysconfdir) sysconfdir="$optarg"
|
--sysconfdir) sysconfdir="$optarg"
|
||||||
;;
|
;;
|
||||||
|
@ -2025,7 +2027,6 @@ if test "$solaris" = "yes" ; then
|
||||||
fi
|
fi
|
||||||
if test "$static" = "yes" ; then
|
if test "$static" = "yes" ; then
|
||||||
echo "CONFIG_STATIC=y" >> $config_host_mak
|
echo "CONFIG_STATIC=y" >> $config_host_mak
|
||||||
LDFLAGS="-static $LDFLAGS"
|
|
||||||
fi
|
fi
|
||||||
if test $profiler = "yes" ; then
|
if test $profiler = "yes" ; then
|
||||||
echo "CONFIG_PROFILER=y" >> $config_host_mak
|
echo "CONFIG_PROFILER=y" >> $config_host_mak
|
||||||
|
|
Loading…
Reference in New Issue