# HG changeset patch # User Tassilo Philipp # Date 1711284764 -3600 # Node ID 127b569978ccbbf83e16c975126e28a2a2b9c94b # Parent 2012dee097d3ef2f183b0e97138f0da7d1925d98 - another tweak handling clang trying to be too smart (see last commit) diff -r 2012dee097d3 -r 127b569978cc test/dynload_plain/Makefile.embedded --- a/test/dynload_plain/Makefile.embedded Thu Mar 21 09:02:44 2024 +0100 +++ b/test/dynload_plain/Makefile.embedded Sun Mar 24 13:52:44 2024 +0100 @@ -27,8 +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}" + # clang tries to be too smart, appending .exe on some platforms (e.g. *nix based mingw cross builds), despite -o being explicity + [ -f "${TEST_U8_SO}.exe" ] && mv "${TEST_U8_SO}.exe" "${TEST_U8_SO}" || true clean: rm -f ${APP} ${OBJS} ${TEST_U8_SO} diff -r 2012dee097d3 -r 127b569978cc test/dynload_plain/Makefile.generic --- a/test/dynload_plain/Makefile.generic Thu Mar 21 09:02:44 2024 +0100 +++ b/test/dynload_plain/Makefile.generic Sun Mar 24 13:52:44 2024 +0100 @@ -21,8 +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}" + # clang tries to be too smart, appending .exe on some platforms (e.g. *nix based mingw cross builds), despite -o being explicity + [ -f "${TEST_U8_SO}.exe" ] && mv "${TEST_U8_SO}.exe" "${TEST_U8_SO}" || true clean: rm -f ${APP} ${OBJS} ${TEST_C_LD} ${TEST_U8_SO} install: