# HG changeset patch # User John Donoghue # Date 1531330502 14400 # Node ID 46bf69e11b717372f5bbabb8754506c498872a1f # Parent 0bee767e21edc06134174a2304c7fe3003333b3d * src/units.mk: when cross compile for mingw, dont use configure detected units and local file locations diff -r 0bee767e21ed -r 46bf69e11b71 src/units.mk --- a/src/units.mk Tue Jul 10 13:35:03 2018 -0400 +++ b/src/units.mk Wed Jul 11 13:35:02 2018 -0400 @@ -21,6 +21,13 @@ --prefix='$(HOST_PREFIX)' \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) + # override units and localalemap from what configure detected for cross mingw + if [ "$(MXE_SYSTEM)$(MXE_NATIVE_BUILD)" == "mingwno" ]; then \ + $(SED) -i -e 's,UNITSFILE=\\\".*definitions.units\\\",UNITSFILE=\\\"definitions.units\\\",g' \ + -e 's,LOCALEMAP=\\\".*locale_map.txt\\\",LOCALEMAP=\\\"locale_map.txt\\\",g' \ + '$(1)/Makefile'; \ + fi + $(MAKE) -C '$(1)' -j '$(JOBS)' $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)' endef