[Top][All Lists]

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

grep branch, master, updated. v2.5.4-214-g8a3a47d

From: Eric Blake
Subject: grep branch, master, updated. v2.5.4-214-g8a3a47d
Date: Mon, 22 Mar 2010 20:45:34 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  8a3a47de77958ec2781b94068919083d8abde388 (commit)
      from  f17211efe374200d532a9f27173e15b018e5538e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

commit 8a3a47de77958ec2781b94068919083d8abde388
Author: Eric Blake <address@hidden>
Date:   Mon Mar 22 11:21:45 2010 -0600

    build: fix cygwin build
    Portions of gnulib depend on -lintl, and cygwin does not allow
    lazy linking.
    * src/ (LDADD): Include libraries in correct order.
    Signed-off-by: Eric Blake <address@hidden>

diff --git a/src/ b/src/
index 5376b97..08f7aac 100644
--- a/src/
+++ b/src/
@@ -28,7 +28,13 @@ noinst_LIBRARIES = libgrep.a
 libgrep_a_SOURCES = kwset.c dfa.c searchutils.c dfasearch.c kwsearch.c \
        pcresearch.c main.c
-LDADD = $(LIBINTL) libgrep.a ../lib/libgreputils.a
+# Sometimes, the expansion of $(LIBINTL) includes -lc which may
+# include modules defining variables like `optind', so libgreputils.a
+# must precede $(LIBINTL) in order to ensure we use GNU getopt.
+# But libgreputils.a must also follow $(LIBINTL), since libintl uses
+# replacement functions defined in libgreputils.a.
+LDADD = libgrep.a ../lib/libgreputils.a $(LIBINTL) ../lib/libgreputils.a
 localedir = $(datadir)/locale
 INCLUDES = -I$(top_srcdir)/lib -DLOCALEDIR=\"$(localedir)\"


Summary of changes:
 src/ |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)


reply via email to

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