1 From 5af98ca8135ac411364b16720d795224a9b4a178 Mon Sep 17 00:00:00 2001
2 From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3 Date: Sat, 30 Jul 2016 15:15:14 +0200
4 Subject: [PATCH] Makefile: allow to pass additional LIBS
6 We need to be able to pass extra LIBS when our toolchain lacks NLS
7 support, this way we can build libintl and link to it. A good example
8 is uClibc with locale support disabled.
10 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
13 src/gui/Makefile | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
16 diff --git a/src/Makefile b/src/Makefile
17 index b50586b..acbdbfa 100644
20 @@ -30,7 +30,7 @@ ifneq ($(shell $(LD) --help 2| grep -- --as-needed), )
21 LDFLAGS+= -Wl,--as-needed
25 +LIBS+=-llshw -lresolv
27 LIBS+= $(shell pkg-config --libs sqlite3)
29 diff --git a/src/gui/Makefile b/src/gui/Makefile
30 index 332ce57..7f72e3f 100644
31 --- a/src/gui/Makefile
32 +++ b/src/gui/Makefile
33 @@ -11,7 +11,7 @@ INCLUDES=-I../core $(GTKINCLUDES)
34 CXXFLAGS=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
35 CFLAGS=$(CXXFLAGS) $(DEFINES)
36 GTKLIBS=$(shell pkg-config gtk+-2.0 gmodule-2.0 --libs)
37 -LIBS=-L../core -llshw -lresolv $(GTKLIBS)
38 +LIBS+=-L../core -llshw -lresolv $(GTKLIBS)
40 ifneq ($(shell $(LD) --help 2| grep -- --as-needed), )
41 LDFLAGS+= -Wl,--as-needed