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

Can not cross compile #113

Open
shiretu opened this issue Apr 4, 2017 · 1 comment
Open

Can not cross compile #113

shiretu opened this issue Apr 4, 2017 · 1 comment

Comments

@shiretu
Copy link

shiretu commented Apr 4, 2017

Hi,

This is how ./configure is executed:

--enable-shared --with-pic --prefix="$(INSTALL_DIR)"

It lacks the --host. So if I export all necessary vars (CC,CXX, CFLAGS, etc), it still doesn't work. Autohell mandates that --host is used for cross compilation.

I am trying to compile sodium for debian armhf on a debian 8 x86_64.

....
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/home/shiretu/work/node_modules/.staging/sodium-d37927f3/deps/libsodium':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
Makefile:61: recipe for target 'libsodium' failed
make: *** [libsodium] Error 1
/home/shiretu/work/node_modules/.staging/sodium-d37927f3/install.js:288
            throw new Error(cmdLine + ' exited with code ' + code);
@paixaop
Copy link
Owner

paixaop commented Nov 17, 2018

Can you submit a pull request?

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

2 participants