Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure LD -L option is calculated correctly with complex SRCDIRS. #504

Closed
wants to merge 1 commit into from
Closed

Conversation

eyob-boye
Copy link
Contributor

When the project Makefile has specified SRCDIRS components that are not directly below Makefile folder level, the LD -L option is not calculated correctly.

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 libcomp_b.a and libcomp_c.a are not found by LD. With this change set, -L is calculated correctly for comp_b and comp_c

…ile 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
@CLAassistant
Copy link

CLAassistant commented Apr 9, 2017

CLA assistant check
All committers have signed the CLA.

@projectgus projectgus added the Status: Pending blocked by some other factor label Apr 21, 2017
@projectgus
Copy link
Contributor

Thanks @eyob-boye . This looks good to me, I've pushed it into our internal review & merge queue.

igrr pushed a commit that referenced this pull request Apr 21, 2017
…ile 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 #504
@projectgus
Copy link
Contributor

Cherry-picked as cdc7396, thanks!

@projectgus projectgus closed this Apr 25, 2017
@igrr igrr removed the Status: Pending blocked by some other factor label Nov 14, 2017
0xFEEDC0DE64 pushed a commit to 0xFEEDC0DE64/esp-idf that referenced this pull request May 5, 2021
* Create ISSUE_TEMPLATE.md

* Add IDF component as example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants