comparison test/dynload_plain/Makefile.generic @ 571:996424e8a5fc

test/dynload_plain: use same CFLAGS to build UTF-8 path helper lib with as for main build (fixes building this helper lib w/ incompatible instruction set on some platforms)
author Tassilo Philipp
date Sun, 04 Sep 2022 16:29:30 +0200
parents 3155ccc33cae
children 0bb9c03ff617
comparison
equal deleted inserted replaced
570:3155ccc33cae 571:996424e8a5fc
18 # dummy bin built with same toolchain and flags to deduce default c lib this is linked with 18 # dummy bin built with same toolchain and flags to deduce default c lib this is linked with
19 echo 'int main() { return 0; }' | ${CC} -x c ${CFLAGS} ${LDFLAGS} -o ${TEST_C_LD} - 19 echo 'int main() { return 0; }' | ${CC} -x c ${CFLAGS} ${LDFLAGS} -o ${TEST_C_LD} -
20 ${APP}: ${OBJS} 20 ${APP}: ${OBJS}
21 ${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS_D} ${LDLIBS} -o ${APP} 21 ${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS_D} ${LDLIBS} -o ${APP}
22 ${TEST_U8_SO}: 22 ${TEST_U8_SO}:
23 echo 'int dynload_plain_testfunc() { return 5; }' | ${CC} -`[ \`uname\` = Darwin ] && echo dynamiclib || echo shared` -x c - -o ${TEST_U8_SO} 23 echo 'int dynload_plain_testfunc() { return 5; }' | ${CC} ${CFLAGS} -`[ \`uname\` = Darwin ] && echo dynamiclib || echo shared` -x c - -o ${TEST_U8_SO}
24 clean: 24 clean:
25 rm -f ${APP} ${OBJS} ${TEST_C_LD} ${TEST_U8_SO} 25 rm -f ${APP} ${OBJS} ${TEST_C_LD} ${TEST_U8_SO}
26 install: 26 install:
27 mkdir -p ${PREFIX}/test 27 mkdir -p ${PREFIX}/test
28 cp ${APP} ${TEST_U8_SO} ${PREFIX}/test 28 cp ${APP} ${TEST_U8_SO} ${PREFIX}/test