Pārlūkot izejas kodu

Makefile.defs: use sed instead of awk for detecting glibc version

(cherry picked from commit 225a59475c91e154ce0a7f0ec252be841a5a8ce5)
(cherry picked from commit 17bbfe97179a2965b145b946b76ba458c2af8bd5)
Daniel-Constantin Mierla 3 gadi atpakaļ
vecāks
revīzija
7f04a6575d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/Makefile.defs

+ 1 - 1
src/Makefile.defs

@@ -1888,7 +1888,7 @@ ifeq ($(OS), linux)
 	endif
 	ifeq ($(CC_NAME), gcc)
 		# link librt for glibc <= 2.17
-		GLIBCVER:=$(shell ldd --version | head -1 | awk '{ sub(/\./, "", $NF); print $NF }' )
+		GLIBCVER=$(shell ldd --version | head -1 | sed -e 's/^.* //' -e 's/\.//' )
 		ifeq ($(shell [ $(GLIBCVER) -le 217 ] && echo librt), librt)
 			LIBS+=-lrt
 		endif