@@ -158,17 +158,17 @@ $(eval $(call AndroidHostTemplate,host-Linux))
158158# $(2): arch
159159define AndroidHostMxeTemplate
160160
161- _android-$(1 ) _PATH=$$(TOP ) /sdks/out/mxe /bin
162-
163- _android-$(1 ) _AR=$$(TOP ) /sdks/out/mxe/ bin/$(2 ) -w64-mingw32.static-ar
164- _android-$(1 ) _AS=$$(TOP ) /sdks/out/mxe/ bin/$(2 ) -w64-mingw32.static-as
165- _android-$(1 ) _CC=$$(TOP ) /sdks/out/mxe/ bin/$(2 ) -w64-mingw32.static-gcc
166- _android-$(1 ) _CXX=$$(TOP ) /sdks/out/mxe/ bin/$(2 ) -w64-mingw32.static-g++
167- _android-$(1 ) _DLLTOOL=$$(TOP ) /sdks/out/mxe/ bin/$(2 ) -w64-mingw32.static-dlltool
168- _android-$(1 ) _LD=$$(TOP ) /sdks/out/mxe/ bin/$(2 ) -w64-mingw32.static-ld
169- _android-$(1 ) _OBJDUMP=$$(TOP ) /sdks/out/mxe/ bin/$(2 ) -w64-mingw32.static-objdump
170- _android-$(1 ) _RANLIB=$$(TOP ) /sdks/out/mxe/ bin/$(2 ) -w64-mingw32.static-ranlib
171- _android-$(1 ) _STRIP=$$(TOP ) /sdks/out/mxe/ bin/$(2 ) -w64-mingw32.static-strip
161+ _android-$(1 ) _PATH=$$(MXE_PREFIX ) /bin
162+
163+ _android-$(1 ) _AR=$$(MXE_PREFIX ) / bin/$(2 ) -w64-mingw32$$( if $$( filter $( UNAME ) ,Darwin) , .static) -ar
164+ _android-$(1 ) _AS=$$(MXE_PREFIX ) / bin/$(2 ) -w64-mingw32$$( if $$( filter $( UNAME ) ,Darwin) , .static) -as
165+ _android-$(1 ) _CC=$$(MXE_PREFIX ) / bin/$(2 ) -w64-mingw32$$( if $$( filter $( UNAME ) ,Darwin) , .static) -gcc
166+ _android-$(1 ) _CXX=$$(MXE_PREFIX ) / bin/$(2 ) -w64-mingw32$$( if $$( filter $( UNAME ) ,Darwin) , .static) -g++
167+ _android-$(1 ) _DLLTOOL=$$(MXE_PREFIX ) / bin/$(2 ) -w64-mingw32$$( if $$( filter $( UNAME ) ,Darwin) , .static) -dlltool
168+ _android-$(1 ) _LD=$$(MXE_PREFIX ) / bin/$(2 ) -w64-mingw32$$( if $$( filter $( UNAME ) ,Darwin) , .static) -ld
169+ _android-$(1 ) _OBJDUMP=$$(MXE_PREFIX ) / bin/$(2 ) -w64-mingw32$$( if $$( filter $( UNAME ) ,Darwin) , .static) -objdump
170+ _android-$(1 ) _RANLIB=$$(MXE_PREFIX ) / bin/$(2 ) -w64-mingw32$$( if $$( filter $( UNAME ) ,Darwin) , .static) -ranlib
171+ _android-$(1 ) _STRIP=$$(MXE_PREFIX ) / bin/$(2 ) -w64-mingw32$$( if $$( filter $( UNAME ) ,Darwin) , .static) -strip
172172
173173_android-$(1 ) _AC_VARS= \
174174 ac_cv_header_zlib_h=no \
@@ -181,8 +181,8 @@ _android-$(1)_CXXFLAGS= \
181181 -DXAMARIN_PRODUCT_VERSION=0
182182
183183_android-$(1 ) _CONFIGURE_FLAGS= \
184- --host=$(2 ) -w64-mingw32.static \
185- --target=$(2 ) -w64-mingw32.static \
184+ --host=$(2 ) -w64-mingw32$$( if $$( filter $( UNAME ) ,Darwin) , .static) \
185+ --target=$(2 ) -w64-mingw32$$( if $$( filter $( UNAME ) ,Darwin) , .static) \
186186 --cache-file=$$(TOP ) /sdks/builds/android-$(1 ) -$$(CONFIGURATION ) .config.cache \
187187 --prefix=$$(TOP ) /sdks/out/android-$(1 ) -$$(CONFIGURATION ) \
188188 --disable-boehm \
@@ -201,5 +201,7 @@ $$(eval $$(call RuntimeTemplate,android-$(1)))
201201
202202endef
203203
204+ ifneq ($(MXE_PREFIX ) ,)
204205$(eval $(call AndroidHostMxeTemplate,host-mxe-Win32,i686))
205206$(eval $(call AndroidHostMxeTemplate,host-mxe-Win64,x86_64))
207+ endif
0 commit comments