diff options
author | Leonid Lisovskiy <lly.dev@gmail.com> | 2016-05-26 20:06:36 +0300 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-05-28 21:47:17 +0200 |
commit | e517397535b0777568fd9c13c4214b63c52d0798 (patch) | |
tree | 9379bb9cf9bb602890b73c968aeefedc88919aaa /Rules.mak | |
parent | 77d003b6da2346e8da58c4535d81fe59f8da75b6 (diff) |
buildsys: Fix broken link.asneeded function
Both $(CC_FLAG_ASNEEDED) and $(CC_FLAG_NO_ASNEEDED) never become "y",
must check for non-empty strings.
To keep make 3.80 compatibility "$(if" used only.
Fixes: 7da4d1e7 "buildsys: do not use $(and)".
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com>
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -535,7 +535,7 @@ ifdef LD_FLAG_NO_ASNEEDED export CC_FLAG_NO_ASNEEDED:=-Wl,$(LD_FLAG_NO_ASNEEDED) endif endif -link.asneeded = $(if $(findstring yy,$(CC_FLAG_ASNEEDED)$(CC_FLAG_NO_ASNEEDED)),$(CC_FLAG_ASNEEDED) $(1) $(CC_FLAG_NO_ASNEEDED)) +link.asneeded = $(if $(CC_FLAG_ASNEEDED),$(if $(CC_FLAG_NO_ASNEEDED),$(CC_FLAG_ASNEEDED) $(1) $(CC_FLAG_NO_ASNEEDED))) # Check for AS_NEEDED support in linker script (binutils>=2.16.1 has it) ifndef ASNEEDED |