[PATCH rtems-source-builder 2/2] qemu: Update CFLAGS and LDFLAGS overrides

Chris Johns chrisj at rtems.org
Thu Feb 1 21:06:13 UTC 2024


OK to push

Chris

On 31/1/2024 8:37 am, Kinsey Moore wrote:
> QEMU used to honor LDFLAGS and CFLAGS and has since moved to accepting
> them via --extra-cflags and --extra-ldflags options to configure.
> ---
>  source-builder/config/qemu-common-2.cfg | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/source-builder/config/qemu-common-2.cfg b/source-builder/config/qemu-common-2.cfg
> index 1dbaf05..56cb8e6 100644
> --- a/source-builder/config/qemu-common-2.cfg
> +++ b/source-builder/config/qemu-common-2.cfg
> @@ -119,12 +119,12 @@ URL: 	   http://www.qemu.org/
>    PKG_CONFIG_PATH=$SYSROOT/lib/pkgconfig \
>    PKG_CONFIG_BUILD_TOP_DIR=$SB_TMPROOT \
>    %{_ld_library_path}=$SYSROOT/lib \
> -  LDFLAGS="-Wl,-rpath -Wl,/$SB_PREFIX_CLEAN/lib -L$SYSROOT/lib ${VDE_LDFLAGS}" \
> -  CFLAGS="${CFLAGS} ${VDE_CFLAGS}" \
>    ../${source_dir_qemu}/configure \
>      --prefix=%{_prefix} \
>      ${CROSS_PREFIX_OPTION} \
>      --make=%{__make} \
> +    --extra-ldflags="-Wl,-rpath -Wl,/$SB_PREFIX_CLEAN/lib -L$SYSROOT/lib ${VDE_LDFLAGS}" \
> +    --extra-cflags="${CFLAGS} ${VDE_CFLAGS}" \
>      %{qemu_target_list} \
>      ${VDE_CONFIG} \
>      %{qemu_disables}


More information about the devel mailing list