changeset 319:993550558ac5

- test/dynload_plain build fix for Darwin cc (use flag -dynamiclib instead of -shared to build test .dylib)
author Tassilo Philipp
date Wed, 13 Nov 2019 16:13:07 +0100
parents 3124f4c4f293
children 85c80b0c021c
files test/dynload_plain/Makefile.embedded test/dynload_plain/Makefile.generic
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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}
--- 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: