51551c65e7ab27a8d8d1005d4778b776c2f1e2b8
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / xscreensaver / 0003-driver-fix-linking-with-lintl.patch
1 From 2336fa7901733a434c38637bf39f3e282e78e1c1 Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@openwide.fr>
3 Date: Wed, 27 Aug 2014 22:44:21 +0200
4 Subject: [PATCH 1/1] driver: fix linking with lintl
5
6 The libintl is missing during xscreensaver build if
7 glib2 was build with gettext.
8
9 xscreensaver.o: In function `main':
10 undefined reference to `libintl_bindtextdomain'
11 undefined reference to `libintl_textdomain'
12
13 Backport a patch applied in 5.28
14
15 Signed-off-by: Romain Naour <romain.naour@openwide.fr>
16 ---
17  driver/Makefile.in | 2 +-
18  1 file changed, 1 insertion(+), 1 deletion(-)
19
20 diff --git a/driver/Makefile.in b/driver/Makefile.in
21 index af077ca..ce7055c 100644
22 --- a/driver/Makefile.in
23 +++ b/driver/Makefile.in
24 @@ -776,7 +776,7 @@ XScreenSaver_Xm_ad.h: XScreenSaver-Xm.ad
25  # The executables linked in this directory.
26  #
27  xscreensaver: $(SAVER_OBJS)
28 -       $(CC) $(LDFLAGS) -o $@ $(SAVER_OBJS) $(SAVER_LIBS)
29 +       $(CC) $(LDFLAGS) -o $@ $(SAVER_OBJS) $(SAVER_LIBS) $(INTL_LIBS)
30  
31  xscreensaver-command: $(CMD_OBJS)
32         $(CC) $(LDFLAGS) -o $@ $(CMD_OBJS) $(CMD_LIBS)
33 -- 
34 1.9.3
35