summaryrefslogtreecommitdiffstats
path: root/source-builder/config/qemu-1-1.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'source-builder/config/qemu-1-1.cfg')
-rw-r--r--source-builder/config/qemu-1-1.cfg16
1 files changed, 15 insertions, 1 deletions
diff --git a/source-builder/config/qemu-1-1.cfg b/source-builder/config/qemu-1-1.cfg
index 6d7532d..471e59e 100644
--- a/source-builder/config/qemu-1-1.cfg
+++ b/source-builder/config/qemu-1-1.cfg
@@ -40,6 +40,12 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
mkdir -p ${build_dir}
cd ${build_dir}
+ %if %{pkgconfig check vdeplug}
+ VDE_CONFIG="--enable-vde"
+ VDE_CFLAGS="%{pkgconfig cflags vdeplug}"
+ VDE_LDFLAGS="%{pkgconfig ldflags vdeplug} %{pkgconfig libs vdeplug}"
+ %endif
+
%{host_build_flags}
if test "%{_build}" != "%{_host}" ; then
@@ -48,18 +54,26 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
SYSROOT=$SB_TMPPREFIX
+ #
+ # The --extra-cflags and --extra-ldflags do not work as expected.
+ #
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" \
+ LDFLAGS="-Wl,-rpath -Wl,/$SB_PREFIX_CLEAN/lib ${VDE_LDFLAGS}" \
+ CFLAGS="${CFLAGS} ${VDE_CFLAGS}" \
../${source_dir_qemu}/configure \
--prefix=%{_prefix} \
${CROSS_PREFIX_OPTION} \
--make=%{__make} \
+ ${VDE_CONFIG} \
--disable-werror \
--disable-tools \
--disable-pie \
--disable-vnc \
+ --disable-sdl \
+ --disable-gtk \
+ --disable-opengl \
--disable-netmap
%{_ld_library_path}=$SYSROOT/lib \