[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] build: fix cygwin build

From: Jim Meyering
Subject: Re: [PATCH] build: fix cygwin build
Date: Mon, 22 Mar 2010 18:50:28 +0100

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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]