Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 18 Nov 2015 11:28:04 +0100
From: Frieder Berthold <>
Subject: How to cross-compiling

Hey to all,

after some hints on this list I tried out the cross-compiling scripts from
Gregor (
They worked and I got a folder /opt/cross/x86_64-linux-musl .
I symlinked the ld-musl-$ to /bin/ldd:

          ll /bin/ldd
          lrwxrwxrwx 1 root root 24 Nov 16 17:04 /bin/ldd ->

With this cross compiler I configured zlib (which has no other dependencies
than libc) as follows:
CC=/opt/cross/x86_64-linux-musl/bin/x86_64-linux-musl-gcc ./configure

If I use this ldd on my newly build zlib it tells me, that it is itself the
                /bin/ldd (0x7fa6ab41d000)
       => /bin/ldd (0x7fa6ab41d000)

I assume this is the correct way and therefore tried to build jamVM ( with musl and my zlib (build with musl).
I copied the zlib into /opt/cross/x86_64-linux-mus/x86_64-linux-musl/lib
and run configure on jamVM:
CC=/opt/cross/x86_64-linux-musl/bin/x86_64-linux-musl-gcc ./

It tells me, that it can't find the

So my question is: Is this the right way to configure and where does it
look for the if not in the corresponding lib folder of the

Thanks in advance!

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.