changeset 285:483581921af2

- dynload_plain test: better guessing what .so to use
author Tassilo Philipp
date Sat, 21 Apr 2018 14:32:35 +0200
parents 73f25e3f1b99
children ce688f871d51
files test/dynload_plain/Makefile.generic
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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