]> granicus.if.org Git - esp-idf/commit
Make sure LD -L option is calculated correctly when the project Makefile has specifie...
authorEyob <eyob.boye@gmail.com>
Sat, 8 Apr 2017 22:18:16 +0000 (18:18 -0400)
committerAngus Gratton <gus@projectgus.com>
Fri, 21 Apr 2017 01:03:07 +0000 (11:03 +1000)
commitcdc7396f97ccc7209019b0a3cde7c8420f0a0f4b
treec779879bab61f2ad3aa827320a7e2f05172d542c
parente5012bd07e52d5fb9f4456a7f149d1c43561e774
Make sure LD -L option is calculated correctly when the project Makefile has specified SRCDIRS components that are not directly below Makefile folder level.

For example,
SRCDIRS = comp_a  happy/comp_b  /c/dev/comp_c

Then the following are built:
build/comp_a/libcomp_a.a
build/comp_b/libcomp_b.a
build/comp_c/libcomp_c.a

But when LD is run the -L is calculated as follows
-L build/comp_a
-L build/happy/comp_b
-L build//c/dev/comp_c

This means comp_b and comp_c are not found by LD. With this change set -L is calculated correctly for comp_b and comp_c

Merges #504 https://github.com/espressif/esp-idf/pull/504
make/project.mk