I found this in emcc:

# If this is a configure-type thing, do not compile to JavaScript, instead 
use clang
# to compile to a native binary (using our headers, so things make sense 
later)
CONFIGURE_CONFIG = (os.environ.get('EMMAKEN_JUST_CONFIGURE') or 
'conftest.c' in sys.argv) and not 
os.environ.get('EMMAKEN_JUST_CONFIGURE_RECURSE')


It's intentionally creating a native binary! The problem is configure is 
testing for a library I built with emcc, gmp. The native build can't pull 
in a library built with emcc.

I built gmp like this:

emconfigure ./configure --disable-assembly --prefix=/home/todd/try2
emmake make -j4
emmake make install


I tried to configure mpfr like this:

emconfigure ./configure --disable-assembly --prefix=/home/todd/try2 
--with-gmp=/home/todd/try2


Is there a way for configure to use the system libraries when doing its 
tests but use the emcc libraries I built while building the real thing?

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to