Dennis J Perkins wrote:
> When I try to build zlib in section 7, x86_64-unknown-linux-gnu-ar
> complains that -z is an illegal option.  I don't see -z being passed as
> an option, so why is it complaining?  And why is the -z option missing,
> since it is listed in the info page, but not in the error output?
>
>
> x86_64-unknown-linux-gnu-ar libz.a adler32.o compress.o crc32.o gzio.o
> uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o
> inffast.o
> x86_64-unknown-linux-gnu-ar: illegal option -- z
> Usage: x86_64-unknown-linux-gnu-ar [emulation options]
> [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file file...
>        x86_64-unknown-linux-gnu-ar -M [<mri-script]
I'm guessing that you applied the -fPIC patch. ar is treating libz.a as
individual parameters. That is why you're seeing tht error. AR is set to
"ar rc" in Makefile.in. When you run configure it's substituting the
environment variable AR in the Makefile which is setting AR to
"x86_64-unknown-linux-gnu-ar" but it doesn't have the "rc" on the end
anymore. When the -fPIC patch is applied it tries to make the static
archive as well as the shared library. In the temp system it is not
applied by default so only the shared library is built.


_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support

Reply via email to