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

How to add library search paths #1

Closed
alephnull opened this issue Jun 23, 2018 · 1 comment
Closed

How to add library search paths #1

alephnull opened this issue Jun 23, 2018 · 1 comment

Comments

@alephnull
Copy link

@alephnull alephnull commented Jun 23, 2018

To give you some context, I am trying to use this toolchain to simply build some standalone applications and not the whole asus-merlin image.

When trying to build, I see the same error that shibby20 reported. I confess that your suggestion to make a link did not make sense to me.

I tried to link by adding a -L directive but it looks that this is ignored. I was able to proceed by setting LD_LIBRARAY_PATH and that worked.

I may be asking a rather n00b question, but a pointer in the right direction would be appreciated. Thanks.

@kvic-z

This comment has been minimized.

Copy link
Owner

@kvic-z kvic-z commented Jun 25, 2018

I can't recall why I had to make the symlink in snbforum's post #12 that you linked above. Very likely it was due to hardcoded path reference in ASUSWRT or Merlin's project. Then frankly I also can't recall or justify now why I made that suggestion to Shibby20 two years ago.

I used this toolchain to build Merlin firmware, and also an independent project, pixelserv-tls. You may look at the Makefile-XC and check LDFLAGS/SHAREDLIB/STATICLIB for linking to external libraries.

@alephnull alephnull closed this Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.