A workaround for compatibility problem, originated from r40300 changes.
Proposed in it "LD ?= gcc" assignment doesn't works both with existing makefiles and with current version of the makefile template. User must define LD in it's makefile to let them work. That is bad. This workaround uses $origin function to check for redefinition of LD variable in user's makefile. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40739 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -79,7 +79,9 @@ endif
|
||||
endif
|
||||
|
||||
# set the linker and linker flags
|
||||
LD ?= gcc
|
||||
ifeq ($(origin LD), default)
|
||||
LD := gcc
|
||||
endif
|
||||
LDFLAGS += $(DEBUG)
|
||||
|
||||
# SETTING: set linker flags for each binary type
|
||||
|
||||
Reference in New Issue
Block a user