Mercurial > pub > dyncall > dyncall
diff 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 |
line wrap: on
line diff
--- a/test/dynload_plain/Makefile.generic Tue Oct 29 16:09:58 2019 +0100 +++ b/test/dynload_plain/Makefile.generic Tue Nov 05 15:19:16 2019 +0100 @@ -1,8 +1,8 @@ # path to default libc.so file, easier to do via shell than in code (see main() in dynload_plain.c) # for compat: first gmake style, then assignment op which will use ! as part of var name on gmake<4 # and thus not override previously set var -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) -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 +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) +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 APP = dynload_plain OBJS = dynload_plain.o