comparison test/dynload_plain/Makefile.generic @ 313:73b5b9e224e2

- dynload_plain test: stability fix for picking right testing lib on build
author Tassilo Philipp
date Tue, 05 Nov 2019 15:19:16 +0100
parents 7c6f19d42b31
children 993550558ac5
comparison
equal deleted inserted replaced
312:18de5758980e 313:73b5b9e224e2
1 # path to default libc.so file, easier to do via shell than in code (see main() in dynload_plain.c) 1 # path to default libc.so file, easier to do via shell than in code (see main() in dynload_plain.c)
2 # for compat: first gmake style, then assignment op which will use ! as part of var name on gmake<4 2 # for compat: first gmake style, then assignment op which will use ! as part of var name on gmake<4
3 # and thus not override previously set var 3 # and thus not override previously set var
4 DEF_C_DYLIB=$(shell ((ls /lib*/libc.so* || ls /usr/lib/libc.so*) | grep -v '\.a$$' | (sort -V -r || sort -t . -n -k 2)) 2>/dev/null | head -1) 4 DEF_C_DYLIB=$(shell ((ldd `which ls` | grep -o '/.*/libc.so[^ ]*' || ls /lib*/libc.so* || ls /usr/lib/libc.so*) | grep -v '\.a$$' | (sort -V -r || sort -t . -n -k 2)) 2>/dev/null | head -1)
5 DEF_C_DYLIB!=((ls /lib*/libc.so* || ls /usr/lib/libc.so*) | grep -v '\.a$$' | (sort -V -r || sort -t . -n -k 2)) 2>/dev/null | head -1 5 DEF_C_DYLIB!=((ldd `which ls` | grep -o '/.*/libc.so[^ ]*' || ls /lib*/libc.so* || ls /usr/lib/libc.so*) | grep -v '\.a$$' | (sort -V -r || sort -t . -n -k 2)) 2>/dev/null | head -1
6 6
7 APP = dynload_plain 7 APP = dynload_plain
8 OBJS = dynload_plain.o 8 OBJS = dynload_plain.o
9 TEST_U8_SO = dynload_plain_ß_test # @@@ unsure if every platform handles ß, here (ANSI, UTF-8, ...) 9 TEST_U8_SO = dynload_plain_ß_test # @@@ unsure if every platform handles ß, here (ANSI, UTF-8, ...)
10 SRCTOP = ${VPATH}/../.. 10 SRCTOP = ${VPATH}/../..