selftests: Makefile: clear LDFLAGS for make O=dir use-case

kselftest target fails when object directory is specified to relocate
objects. Inherited "LDFLAGS = -m" fails the test builds. Clear it.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
This commit is contained in:
Shuah Khan 2017-09-07 19:57:43 -06:00
parent 8050ef2b83
commit 52fd1d0823
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,10 @@ override LDFLAGS =
override MAKEFLAGS = override MAKEFLAGS =
endif endif
ifneq ($(KBUILD_SRC),)
override LDFLAGS =
endif
BUILD := $(O) BUILD := $(O)
ifndef BUILD ifndef BUILD
BUILD := $(KBUILD_OUTPUT) BUILD := $(KBUILD_OUTPUT)