mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 20:13:32 +01:00
defs.mk: Add variables LD_VERSION LD_MAJOR LD_MINOR LD_REV
This commit is contained in:
parent
e454883582
commit
29609036be
1 changed files with 6 additions and 0 deletions
|
|
@ -29,6 +29,11 @@ GCC_MAJOR = $(shell gcc -v 2>&1 | grep version | awk '{ split($$3,a,"."); pri
|
|||
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][0-9]*\).*/\1/')
|
||||
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)
|
||||
|
||||
YTOOLS_VERSION = @PACKAGE_VERSION@
|
||||
YTOOLS_VERSION_STR = \"@PACKAGE_VERSION@\"
|
||||
|
||||
|
|
@ -343,3 +348,4 @@ ifneq ($(wildcard local.mk),)
|
|||
include local.mk
|
||||
endif
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue