changeset 662:2012dee097d3

- fix dynload_plain test on some toolchains trying to be too smart (e.g. clang llvmmingw appends .exe to -o outfile if no suffix, for no reason at all)
author Tassilo Philipp
date Thu, 21 Mar 2024 09:02:44 +0100
parents 93ce63d72d59
children 127b569978cc
files test/dynload_plain/Makefile.embedded test/dynload_plain/Makefile.generic
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/dynload_plain/Makefile.embedded	Thu Mar 14 10:11:28 2024 +0100
+++ b/test/dynload_plain/Makefile.embedded	Thu Mar 21 09:02:44 2024 +0100
@@ -27,6 +27,8 @@
 
 ${TEST_U8_SO}:
 	echo 'int dynload_plain_testfunc() { return 5; }' | ${CC} ${CFLAGS} -`[ \`uname\` = Darwin ] && echo dynamiclib || echo shared` -x c - -o ${TEST_U8_SO}
+	# clang tries to be too smart, appending .exe on some platforms (e.g. *nix based mingw cross builds)
+	[ -f "${TEST_U8_SO}.exe" ] && mv "${TEST_U8_SO}.exe" "${TEST_U8_SO}"
 
 clean:
 	rm -f ${APP} ${OBJS} ${TEST_U8_SO}
--- a/test/dynload_plain/Makefile.generic	Thu Mar 14 10:11:28 2024 +0100
+++ b/test/dynload_plain/Makefile.generic	Thu Mar 21 09:02:44 2024 +0100
@@ -21,6 +21,8 @@
 	${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS_D} ${LDLIBS} -o ${APP}
 ${TEST_U8_SO}:
 	echo 'int dynload_plain_testfunc() { return 5; }' | ${CC} ${CFLAGS} -`[ \`uname\` = Darwin ] && echo dynamiclib || echo shared` -x c - -o ${TEST_U8_SO}
+	# clang tries to be too smart, appending .exe on some platforms (e.g. *nix based mingw cross builds)
+	[ -f "${TEST_U8_SO}.exe" ] && mv "${TEST_U8_SO}.exe" "${TEST_U8_SO}"
 clean:
 	rm -f ${APP} ${OBJS} ${TEST_C_LD} ${TEST_U8_SO}
 install: