1 From 5bb2bc6384024c2344ef5cc6785131b382c38170 Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@openwide.fr>
3 Date: Sun, 10 May 2015 22:19:03 +0200
4 Subject: [PATCH] fix static build with uClibc
6 uClibc doesn't provide lintl which should be provided
7 by gettext. If gnuchess is linked statically, -lintl should
8 be placed after libfrontend.a libadapter.a libengine.a.
11 http://autobuild.buildroot.net/results/dcb/dcb1c0eb7212bd8d1e0d8b51fd517b73b7569cea/
13 Signed-off-by: Romain Naour <romain.naour@openwide.fr>
15 src/Makefile.am | 2 +-
16 src/Makefile.in | 2 +-
17 2 files changed, 2 insertions(+), 2 deletions(-)
19 diff --git a/src/Makefile.am b/src/Makefile.am
20 index ba90bce..fc02543 100644
23 @@ -34,7 +34,7 @@ DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
26 SUBDIRS = frontend adapter engine
27 -gnuchess_LDADD = $(LIBINTL) frontend/libfrontend.a adapter/libadapter.a engine/libengine.a
28 +gnuchess_LDADD = frontend/libfrontend.a adapter/libadapter.a engine/libengine.a $(LIBINTL)
30 configmake.h: Makefile
32 diff --git a/src/Makefile.in b/src/Makefile.in
33 index 9460bfd..424da52 100644
36 @@ -395,7 +395,7 @@ AM_LDFLAGS = $(PTHREAD_LDFLAGS) $(PTHREAD_LIBS)
37 AM_CPPFLAGS = -I$(top_srcdir)/lib -I$(top_builddir)/lib
39 SUBDIRS = frontend adapter engine
40 -gnuchess_LDADD = $(LIBINTL) frontend/libfrontend.a adapter/libadapter.a engine/libengine.a
41 +gnuchess_LDADD = frontend/libfrontend.a adapter/libadapter.a engine/libengine.a $(LIBINTL)
42 BUILT_SOURCES = configmake.h
43 CLEANFILES = configmake.h configmake.h-t
44 all: $(BUILT_SOURCES) config.h