diff --git a/package/wine/wine.mk b/package/wine/wine.mk index bd242cffb0..188c7cc10e 100644 --- a/package/wine/wine.mk +++ b/package/wine/wine.mk @@ -27,9 +27,7 @@ WINE_CONF_OPTS = \ --without-openal \ --without-opencl \ --without-osmesa \ - --without-oss \ - --without-xshape \ - --without-xshm + --without-oss # Wine uses a wrapper around gcc, and uses the value of --host to # construct the filename of the gcc to call. But for external @@ -207,6 +205,13 @@ else WINE_CONF_OPTS += --without-xcursor endif +ifeq ($(BR2_PACKAGE_XLIB_LIBXEXT),y) +WINE_CONF_OPTS += --with-xshape --with-xshm +WINE_DEPENDENCIES += xlib_libXext +else +WINE_CONF_OPTS += --without-xshape --without-xshm +endif + ifeq ($(BR2_PACKAGE_XLIB_LIBXI),y) WINE_CONF_OPTS += --with-xinput --with-xinput2 WINE_DEPENDENCIES += xlib_libXi