instead of setup sdl_x11 just add -lX11 to sdl_libs
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
8ad3a7ddb8
commit
681306dfaa
5
configure
vendored
5
configure
vendored
@ -201,7 +201,6 @@ aix="no"
|
|||||||
blobs="yes"
|
blobs="yes"
|
||||||
fdt="yes"
|
fdt="yes"
|
||||||
sdl="yes"
|
sdl="yes"
|
||||||
sdl_x11="no"
|
|
||||||
xen="yes"
|
xen="yes"
|
||||||
pkgversion=""
|
pkgversion=""
|
||||||
|
|
||||||
@ -940,7 +939,7 @@ cat > $TMPC <<EOF
|
|||||||
int main(void) { return 0; }
|
int main(void) { return 0; }
|
||||||
EOF
|
EOF
|
||||||
if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $sdl_cflags $TMPC $sdl_libs > /dev/null 2>&1 ; then
|
if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $sdl_cflags $TMPC $sdl_libs > /dev/null 2>&1 ; then
|
||||||
sdl_x11="yes"
|
sdl_libs="$sdl_libs -lX11"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1659,8 +1658,6 @@ if test "$sdl1" = "yes" ; then
|
|||||||
echo "CONFIG_SDL=y" >> $config_host_mak
|
echo "CONFIG_SDL=y" >> $config_host_mak
|
||||||
if test "$target_softmmu" = "no" -o "$static" = "yes"; then
|
if test "$target_softmmu" = "no" -o "$static" = "yes"; then
|
||||||
echo "SDL_LIBS=$sdl_static_libs" >> $config_host_mak
|
echo "SDL_LIBS=$sdl_static_libs" >> $config_host_mak
|
||||||
elif test "$sdl_x11" = "yes" ; then
|
|
||||||
echo "SDL_LIBS=$sld_libs -lX11" >> $config_host_mak
|
|
||||||
else
|
else
|
||||||
echo "SDL_LIBS=$sdl_libs`" >> $config_host_mak
|
echo "SDL_LIBS=$sdl_libs`" >> $config_host_mak
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user