Skip to contentSkip to conversation

mingw32: Add WINDRES export for SDK

PATCH New Khem Raj 1 participant 1 message May 24, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 mingw32: Add WINDRES export for SDK

GCC-13 has added code where windres is called on a rc file which includes winuser.h, this requires to call windres with -I option to point to right header directory duting gcc-candian-cross builds

Fixes
../../../../../../../work-shared/gcc-13.1.0-r0/gcc-13.1.0/gcc/config/i386/utf8-mingw32.rc:1:10: fatal error: winuser.h: No such file or directory

|     1 | #include <winuser.h>
|       |          ^~~~~~~~~~~
---
 conf/machine-sdk/include/mingw32-common.inc | 3 +++
 1 file changed, 3 insertions(+)
conf/machine-sdk/include/mingw32-common.inc +3 -0
index af6bfc4..9ec6e07 100644
@@ -38,6 +38,9 @@ TESTSDKEXT_CLASS_NAME = ""
 WINDMC:mingw32 = "${HOST_PREFIX}windmc"
 WINDRES:mingw32 = "${HOST_PREFIX}windres --include-dir=${STAGING_INCDIR}"
 RC:mingw32 = "${WINDRES}"
+WINDMC:sdkmingw32 = "${HOST_PREFIX}windmc"
+WINDRES:sdkmingw32 = "${HOST_PREFIX}windres --include-dir=${STAGING_INCDIR}"
+RC:sdkmingw32 = "${WINDRES}"
 
 export WINDMC
 export WINDRES
Signature · 1 line
2.40.1