egcs-19980803 and AIX 4.3.1 - compiling makeinfo fails on -lz

David R. Favor dfavor@austin.ibm.com
Fri Aug 14 04:54:00 GMT 1998


There is an odd problem building texinfo/makeinfo/makeinfo.
Doing a make from the top of the egcs tree results in:

   nice xlc -qmaxmem=8192 -ma -O2  -o makeinfo  makeinfo.o multi.o \
      ../lib/libtxi.a ../intl/libintl.a -lz

which results in:

   ld: 0706-006 Cannot find or open library file: -l z
        ld:open(): No such file or directory

If I manually executed xlc without the -lz the compile works.

so I set LDFLAGS='-L/usr/local/lib -L/lib' and configured again. I get the
same error, however if I cd to texinfo/makeinfo and type make I get:

   nice xlc -qmaxmem=8192 -ma -O2 -L/usr/local/lib -L/lib -o makeinfo \
      makeinfo.o multi.o ../lib/libtxi.a ../intl/libintl.a -lz

So that's strange, but the real issue is that -lz should not be included in
the compile line. How does configure pick up -lz and how do I get rid of it?

Thanks.



More information about the Gcc-bugs mailing list