Skip to content

Commit 95bd296

Browse files
Release: Evaluate MinGW sysroot path dynamically
DLL files should be copied from MinGW sysroot folder. Path to this folder used to be hardcoded, and that stopped working with MinGW toolchain at non-standard location. Solution is to use gcc option `-print-sysroot` to evaluate path dynamically. Signed-off-by: Anton Kolesov <[email protected]>
1 parent 1860c6f commit 95bd296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ $O/.stamp_linux_be_hs_tarball: $O/.stamp_linux_be_hs_built
567567
# Windows build
568568
#
569569

570-
WINDOWS_SYSROOT := /usr/$(WINDOWS_TRIPLET)/sys-root/mingw
570+
WINDOWS_SYSROOT := $(shell $(WINDOWS_TRIPLET)-gcc -print-sysroot)/mingw
571571

572572
# Helper function to copy mingw .dll files to installation directories with
573573
# executable files. There are several directories and for simplicity all .dlls

0 commit comments

Comments
 (0)