# HG changeset patch # User John D # Date 1432864296 14400 # Node ID f96ff976ede71d525741e6d7ed71701e28817395 # Parent 14ad478dc07b82d25a3a889b46dd19e68f12c8a7 portaudio: only set mingw flags when compiling for mingw (Bug #45175) * src/portaudio.mk: set PKG_SYSDEP_OPTIONS for mingw targets only diff -r 14ad478dc07b -r f96ff976ede7 src/portaudio.mk --- a/src/portaudio.mk Thu May 28 21:45:33 2015 -0400 +++ b/src/portaudio.mk Thu May 28 21:51:36 2015 -0400 @@ -10,6 +10,14 @@ $(PKG)_URL := http://www.portaudio.com/archives/$($(PKG)_FILE) $(PKG)_DEPS := +$(PKG)_SYSDEP_OPTIONS := +ifeq ($(MXE_SYSTEM),mingw) + $(PKG)_SYSDEP_OPTIONS += \ + --with-host_os=mingw \ + --with-winapi=wmme,directx \ + --with-dxdir=$(HOST_PREFIX) +endif + define $(PKG)_UPDATE $(WGET) -q -O- 'http://www.portaudio.com/download.html' | \ $(SED) -n 's,.*pa_stable_v\([0-9][^>]*\)\.tgz.*,\1,p' | \ @@ -26,9 +34,7 @@ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ --prefix='$(HOST_PREFIX)' \ $(ENABLE_SHARED_OR_STATIC) \ - --with-host_os=mingw \ - --with-winapi=wmme,directx \ - --with-dxdir=$(HOST_PREFIX) \ + $($(PKG)_SYSDEP_OPTIONS) \ ac_cv_path_AR=$(MXE_AR) \ $(if $(filter $(BUILD_SHARED),yes),\ lt_cv_deplibs_check_method='file_magic file format (pe-i386|pe-x86-64)' \