fix: LD_VERSION broken by ld --version output on suse 11.4

This commit is contained in:
Jan Lindemann 2011-08-21 17:06:50 +00:00 committed by Jan Lindemann
commit da9522c4d5

View file

@ -171,7 +171,7 @@ GCC_MAJOR = $(shell gcc -v 2>&1 | grep version | awk '{ split($$3,
GCC_MINOR = $(shell gcc -v 2>&1 | grep version | awk '{ split($$3,a,"."); print a[2];}')
GCC_REV = $(shell gcc -v 2>&1 | grep version | awk '{ split($$3,a,"."); print a[3];}')
LD_VERSION = $(shell ld --version | sed '/GNU ld/ !d; s/.*[^ ]\+\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/')
LD_VERSION = $(shell ld -V | sed '/GNU ld/ !d; s/(.*)//; s/[^0-9.-]*//')
LD_MAJOR = $(shell echo $(LD_VERSION) | cut -d. -f1)
LD_MINOR = $(shell echo $(LD_VERSION) | cut -d. -f2)
LD_REV = $(shell echo $(LD_VERSION) | cut -d. -f3)