Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+1a+Drnh2By8ZEWRXZTdmMpj_qaajTSSAz8JSv8B1mevyaEqg@mail.gmail.com>
Date: Wed, 18 Nov 2015 11:28:04 +0100
From: Frieder Berthold <berthold.frieder@...glemail.com>
To: musl@...ts.openwall.com
Subject: How to cross-compiling

Hey to all,

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

          ll /bin/ldd
          lrwxrwxrwx 1 root root 24 Nov 16 17:04 /bin/ldd ->
/lib/ld-musl-x86_64.so.1


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
libc.so:
          /bin/ldd libz.so.1
                /bin/ldd (0x7fa6ab41d000)
                libc.so => /bin/ldd (0x7fa6ab41d000)

I assume this is the correct way and therefore tried to build jamVM (
http://jamvm.sourceforge.net/) 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 ./autogen.sh
--with-java-runtime-library=openjdk8

It tells me, that it can't find the libz.so.

So my question is: Is this the right way to configure and where does it
look for the libz.so if not in the corresponding lib folder of the
cross-compiler?

Thanks in advance!
Frieder

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.