Then compare it to your desired version using sort -V

But only if you have a more recent version of gnu sort

Heh,

Malcolm

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of David Aldrich
Sent: Wednesday, April 06, 2016 7:01 AM
To: [email protected]
Cc: [email protected]
Subject: RE: How to switch behaviour according to glibc version?

> So, write:
> 
>   verstr := $(shell ldd --version | head -1 | awk '{print $$NF}')

Thanks Paul, that worked fine.

David
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to