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 build ccan in cross-platform? #31

Open
heihuhu310 opened this issue Sep 10, 2015 · 2 comments
Open

how to build ccan in cross-platform? #31

heihuhu310 opened this issue Sep 10, 2015 · 2 comments

Comments

@heihuhu310
Copy link

i want to use in the embedded linux system, but i can't build it success. anyone can help me? thanks in advance

@rustyrussell
Copy link
Owner

RuyiDu [email protected] writes:

i want to use in the embedded linux system, but i can't build it success. anyone can help me? thanks in advance

A detailed error message would be extremely useful.

Thanks,
Rusty.

@rossburton
Copy link

I believe the question is "how do I use ccan in a cross-compiled environment". The create-ccan-tree tool just calls make to build ccan-depends which uses the configured (thus, cross) compiler, not the build compiler.

My workaround is to invoke create-ccan-tree by hand, overriding the environment variables:

CC="${BUILD_CC}" CFLAGS="${BUILD_CFLAGS}" LDFLAGS="${BUILD_LDFLAGS}" create-ccan-tree [...]

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

No branches or pull requests

3 participants