Eric Blake wrote: > Portions of gnulib depend on -lintl, and cygwin does not allow > lazy linking. > > * src/Makefile.am (LDADD): Include libraries in correct order. ... > -LDADD = $(LIBINTL) libgrep.a ../lib/libgreputils.a > +LDADD = libgrep.a ../lib/libgreputils.a $(LIBINTL)
Thanks for diagnosing that! However we probably need something a little different. Here's what I had to do in coreutils: # Sometimes, the expansion of $(LIBINTL) includes -lc which may # include modules defining variables like `optind', so libcoreutils.a # must precede $(LIBINTL) in order to ensure we use GNU getopt. # But libcoreutils.a must also follow $(LIBINTL), since libintl uses # replacement functions defined in libcoreutils.a. LDADD = libver.a ../lib/libcoreutils.a $(LIBINTL) ../lib/libcoreutils.a Can you confirm that the equivalent also solves the Cygwin build problem?
