[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
I'm trying to cross-compile some packages on a x86_64 host for a
I'm following Taylor R. Campbell HOWTE (2017/03/05) but I ran into
I had first to set
in /etc/mk.conf so that libnbcompat could simply built, choking on what
is introduced by -D_FORTIFY_SOURCE=2.
When trying to create the first needed package: cross-libtool-base,
the configure script chokes because it is unable to create an
Indeed, the cross-compiler is invoked with --sysroot=/ and this prevents
it from finding the crt0.o etc. to link the executable with.
So I force it by adding in the Makefile:
Then apparently it finds the crt0.o etc. but invokes the native loader
to determine if it's an executable! This:
/usr/lib/libgcc_s.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
I wonder what I'm doing wrong or am I the sole one to try
cross-compilation with pkgsrc?
Here are the relevant bits in my /etc/mk.conf:
# pkgsrc (from Taylor R. Campbell HOWTO)
# Can't be set on cmd line.
# Added by me: FORTIFY_SOURCE doesn't work with libtool.
# Matrix binaries for target binaries (target not mentioned).
If somebody has any clue about the @!!!**@! configure, automake and all
this... stuff, I'd be happy to hear.
Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
Main Index |
Thread Index |