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: help-make-bounces+mec=stowers....@gnu.org [mailto:help-make-bounces+mec=stowers....@gnu.org] On Behalf Of David Aldrich Sent: Wednesday, April 06, 2016 7:01 AM To: psm...@gnu.org Cc: help-make@gnu.org 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 Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make