harfbuzz: bump version to 1.4.5
[buildroot-gz.git] / package / lshw / 0001-Makefile-allow-to-pass-additional-LIBS.patch
blob7720124369f2160c69be91e38a5bd035b02abaac
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>
11 ---
12 src/Makefile | 2 +-
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
18 --- a/src/Makefile
19 +++ b/src/Makefile
20 @@ -30,7 +30,7 @@ ifneq ($(shell $(LD) --help 2| grep -- --as-needed), )
21 LDFLAGS+= -Wl,--as-needed
22 endif
23 LDSTATIC=-static
24 -LIBS=-llshw -lresolv
25 +LIBS+=-llshw -lresolv
26 ifeq ($(SQLITE), 1)
27 LIBS+= $(shell pkg-config --libs sqlite3)
28 endif
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)
39 LDFLAGS=
40 ifneq ($(shell $(LD) --help 2| grep -- --as-needed), )
41 LDFLAGS+= -Wl,--as-needed
42 --
43 2.7.4