mailing list of musl libc
 help / color / mirror / code / Atom feed
* How to cross-compiling
@ 2015-11-18 10:28 Frieder Berthold
  2015-11-18 11:03 ` Szabolcs Nagy
  0 siblings, 1 reply; 5+ messages in thread
From: Frieder Berthold @ 2015-11-18 10:28 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 1320 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1755 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-19 13:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-18 10:28 How to cross-compiling Frieder Berthold
2015-11-18 11:03 ` Szabolcs Nagy
2015-11-18 11:19   ` Frieder Berthold
2015-11-18 12:39     ` Szabolcs Nagy
2015-11-19 13:08       ` Frieder Berthold

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).