Skip to content

Commit aa712ee

Browse files
committed
Workarounds for missing -municode support
1 parent a118902 commit aa712ee

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

winsup/configure.ac

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ esac
7373

7474
AC_SUBST(DLL_ENTRY)
7575

76+
AM_CONDITIONAL(BUILD_X86_64, [test $build_cpu = "x86_64"])
77+
AM_CONDITIONAL(BUILD_AARCH64, [test $build_cpu = "aarch64"])
7678
AM_CONDITIONAL(TARGET_X86_64, [test $target_cpu = "x86_64"])
7779
AM_CONDITIONAL(TARGET_AARCH64, [test $target_cpu = "aarch64"])
7880

@@ -114,9 +116,9 @@ if test -z "$XMLTO"; then
114116
fi
115117

116118
if test "x$with_cross_bootstrap" != "xyes"; then
117-
AC_CHECK_PROGS(MINGW_CXX, ${target_cpu}-w64-mingw32-g++)
119+
AC_CHECK_PROGS(MINGW_CXX, ${build_cpu}-w64-mingw32-g++)
118120
test -n "$MINGW_CXX" || AC_MSG_ERROR([no acceptable MinGW g++ found in \$PATH])
119-
AC_CHECK_PROGS(MINGW_CC, ${target_cpu}-w64-mingw32-gcc)
121+
AC_CHECK_PROGS(MINGW_CC, ${build_cpu}-w64-mingw32-gcc)
120122
test -n "$MINGW_CC" || AC_MSG_ERROR([no acceptable MinGW gcc found in \$PATH])
121123
fi
122124
AM_CONDITIONAL(CROSS_BOOTSTRAP, [test "x$with_cross_bootstrap" != "xyes"])

winsup/testsuite/mingw/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@ cygload_LDFLAGS=-static -Wl,-e,cygloadCRTStartup
2727

2828
winchild_SOURCES = \
2929
../winsup.api/posix_spawn/winchild.c
30+
if BUILD_X86_64
3031
winchild_LDFLAGS=-municode
32+
endif
3133
winchild_LDADD=-lntdll

winsup/testsuite/winsup.api/posix_spawn/winchild.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55
#include <stdio.h>
66
#include <stdlib.h>
77

8+
#if defined(__aarch64__)
9+
int WinMain(
10+
HINSTANCE hInstance,
11+
HINSTANCE hPrevInstance,
12+
LPSTR lpCmdLine,
13+
int nShowCmd
14+
) {
15+
16+
}
17+
#endif
18+
819
int wmain (int argc, wchar_t **argv)
920
{
1021
if (argc != 3)

0 commit comments

Comments
 (0)