On Mon, Sep 25, 2006 at 07:42:52AM -0600, [EMAIL PROTECTED] wrote: > >> I found that the LFS book mentions that zlib doesn't build properly if > >> CFLAGS is set. Definitely true. It compiles properly if CFLAGS is > >> unset or if -fPIC is added to CFLAGS. This comment should probably be > >> added to CLFS. > >> > > -fPIC is an x86_64 requirement for mixing shared and static. AFAIK > > no other architectures need it. Anyway, if the book says that CFLAGS > > should NOT be set, that covers it. > > Section 5.2 says that CFLAGS should not be set when building cross tools. > The book doesn't mention CFLAGS when building the temporary or final > systems. Now that I think of it, it's probably not worth setting it > during the temporary stage since this stage will be thrown away. > > I'm not interested in having static libraries on my system, so I guess > -fPIC isn't needed. > OK, I missed the variation between the chapters, and I'm also bad-tempered today (trying to sort out my tax return, and failing miserably), but I agree with your conclusion.
> I am deviating a bit while experimenting. It helps me understand some of > the less obvious reasons LFS does certain things. I didn't use > config.site for the cross toolchain, but I am for the temporary stage. The learning is good, but deviating means you (like all developers) sometimes get your own individual problems that nobody else sees. I was in the "maybe we have a problem in the book" mindset. Ken -- das eine Mal als Tragödie, das andere Mal als Farce _______________________________________________ Clfs-support mailing list [email protected] http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support
