Am Montag, den 17.08.2015, 00:50 -0400 schrieb Mike Frysinger: > On 16 Aug 2015 13:39, Tom Lane wrote: > > $ grep extra_libs Makefile > > extra_libs = -lz > > ccache$(EXEEXT): $(ccache_objs) $(extra_libs) > > $(CC) $(all_cflags) -o $@ $(ccache_objs) $(all_ldflags) > > $(extra_libs) $(LIBS) > > test/main$(EXEEXT): $(base_objs) $(test_objs) $(extra_libs) > > $(CC) $(all_cflags) -o $@ $(base_objs) $(test_objs) > > $(all_ldflags) $(extra_libs) $(LIBS) > > > > and of course "-lz" isn't a valid dependency. > > that's not really true. make will expand it internally into paths > like > /usr/lib/libz.so.
FWIW We encountered the same problem when cross compiling from x86_64 for armvl ccache with the Void Linux binary package build system. Compiling for the native architecture worked as expected. > that said, there's no value anymore in putting -l flags into the deps > list > and should just omit it from builds. > -mike Yes, please. Simply stripping $(extra_libs) from the dependencies for ccache$(EXEEXT) solved the issue for us as well. Jürgen _______________________________________________ ccache mailing list firstname.lastname@example.org https://lists.samba.org/mailman/listinfo/ccache