# HG changeset patch # User Tassilo Philipp # Date 1524313955 -7200 # Node ID 483581921af2a62b198bae90f92edceae2a3626d # Parent 73f25e3f1b992e95f57261eb7375765a0d7a21e0 - dynload_plain test: better guessing what .so to use diff -r 73f25e3f1b99 -r 483581921af2 test/dynload_plain/Makefile.generic --- a/test/dynload_plain/Makefile.generic Fri Apr 20 08:01:00 2018 +0200 +++ b/test/dynload_plain/Makefile.generic Sat Apr 21 14:32:35 2018 +0200 @@ -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*) | (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*) | (sort -V -r || sort -t . -n -k 2)) 2>/dev/null | head -1 +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 APP = dynload_plain OBJS = dynload_plain.o