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:
Siarzhuk Zharski
2011-02-28 19:17:55 +00:00
parent 860c710dca
commit 4142f7dcef
+3 -1
View File
@@ -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