This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Cross build failure: CC doesn't support -z relro but LD does
- From: David Krauss <david dot krauss at twistresources dot com>
- To: libc-help at sourceware dot org
- Date: Fri, 10 Aug 2012 13:51:30 +0800
- Subject: Cross build failure: CC doesn't support -z relro but LD does
I'm trying to cross compile glibc-2.16 on OS X for Linux.
More info: http://stackoverflow.com/q/11876066/153285
I've configured it like so:
../glibc/configure --host=x86_64-pc-linux-gnu
--build=x86_64-apple-darwin11 --prefix=/usr/local/cross/linux/
--with-binutils=/usr/local/cross/linux/bin/
--with-headers=/usr/local/cross/linux/include/ libc_cv_forced_unwind=yes
libc_cv_ctors_header=yes libc_cv_c_cleanup=yes
The build fails at the file stdio_lim.h, which is the first thing that
happens after the abi-tag.h target is made. So this is one of the first
few build products. It tries to build it via stdio_lim.st, finds no rule
for that, and bails out.
Any ideas? Relevant details I left out?
- thx,
David