# HG changeset patch # User Tassilo Philipp # Date 1573657987 -3600 # Node ID 993550558ac5e7a383b0436631f0f64bab7fdbfc # Parent 3124f4c4f293477d34ef83d95b26e759d822e4e4 - test/dynload_plain build fix for Darwin cc (use flag -dynamiclib instead of -shared to build test .dylib) diff -r 3124f4c4f293 -r 993550558ac5 test/dynload_plain/Makefile.embedded --- a/test/dynload_plain/Makefile.embedded Wed Nov 13 01:21:02 2019 +0100 +++ b/test/dynload_plain/Makefile.embedded Wed Nov 13 16:13:07 2019 +0100 @@ -23,7 +23,7 @@ ${CC} ${OBJS} ${LDFLAGS} ${LDLIBS} -o $@ ${TEST_U8_SO}: - echo 'int dynload_plain_testfunc() { return 5; }' | ${CC} -shared -x c - -o ${TEST_U8_SO} + echo 'int dynload_plain_testfunc() { return 5; }' | ${CC} -`[ \`uname\` = Darwin ] && echo dynamiclib || echo shared` -x c - -o ${TEST_U8_SO} clean: rm -f ${APP} ${OBJS} ${TEST_U8_SO} diff -r 3124f4c4f293 -r 993550558ac5 test/dynload_plain/Makefile.generic --- a/test/dynload_plain/Makefile.generic Wed Nov 13 01:21:02 2019 +0100 +++ b/test/dynload_plain/Makefile.generic Wed Nov 13 16:13:07 2019 +0100 @@ -19,7 +19,7 @@ ${APP}: ${OBJS} ${CC} ${LDFLAGS} ${OBJS} ${LDLIBS_D} ${LDLIBS} -o ${APP} ${TEST_U8_SO}: - echo 'int dynload_plain_testfunc() { return 5; }' | ${CC} -shared -x c - -o ${TEST_U8_SO} + echo 'int dynload_plain_testfunc() { return 5; }' | ${CC} -`[ \`uname\` = Darwin ] && echo dynamiclib || echo shared` -x c - -o ${TEST_U8_SO} clean: rm -f ${APP} ${OBJS} ${TEST_U8_SO} install: