summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2010-05-02 15:52:21 +0200
committerAndreas Gruenbacher <agruen@suse.de>2010-05-02 15:52:21 +0200
commit0c837fd075fabf85ee6e6d6a74079f12bb171dd3 (patch)
tree300c57e50108be2a0d28c2cc95e647963ad56511
parent47622c1e468933d6d3f6c46ba723dccdb5a18776 (diff)
downloadpatch-0c837fd075fabf85ee6e6d6a74079f12bb171dd3.tar.gz
Fix the linker library order
* src/Makefile.am (patch_LDADD): Add $(LIB_CLOCK_GETTIME) here, after libpatch.a, so that clock_gettime is properly resolved on systems on which the library order matters.
-rw-r--r--ChangeLog4
-rw-r--r--src/Makefile.am3
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c02662e..ba7bd02 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2009-05-02 Andreas Gruenbacher <agruen@suse.de>
+ * src/Makefile.am (patch_LDADD): Add $(LIB_CLOCK_GETTIME) here, after
+ libpatch.a, so that clock_gettime is properly resolved on systems on
+ which the library order matters.
+
* NEWS: Update.
* gnulib: Update to latest.
* bootstrap: Update from gnulib.
diff --git a/src/Makefile.am b/src/Makefile.am
index b404950..c1a1f9c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -31,8 +31,7 @@ patch_SOURCES = \
version.h
AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib
-patch_LDFLAGS = $(LIB_CLOCK_GETTIME)
-patch_LDADD = $(top_builddir)/lib/libpatch.a
+patch_LDADD = $(LDADD) $(top_builddir)/lib/libpatch.a $(LIB_CLOCK_GETTIME)
if ENABLE_MERGE
patch_SOURCES += merge.c