Mercurial > mxe-octave
changeset 6580:380594f52059
units: Avoid issues with symlinks on Windows.
* src/units.mk: Install all .units files in the same folder when cross compiling
for mingw to avoid issues with unreliable symlinks for that platform.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 27 Nov 2022 19:08:31 +0100 |
parents | 6acfc9230935 |
children | e5c0c787ed73 |
files | src/units.mk |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/units.mk Thu Dec 22 17:57:34 2022 -0500 +++ b/src/units.mk Sun Nov 27 19:08:31 2022 +0100 @@ -17,6 +17,11 @@ endef define $(PKG)_BUILD + # install all .units files in "share" for cross mingw (no reliable symlinks) + if [ "$(MXE_SYSTEM)$(MXE_NATIVE_BUILD)" == "mingwno" ]; then \ + $(SED) -i -e 's|@CDAT@|@UDAT@|g' '$(1)/Makefile.in'; \ + fi + cd '$(1)' && ./configure \ --prefix='$(HOST_PREFIX)' \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS)