Blame SOURCES/0008-Makefile-allow-to-pass-additional-LIBS.patch

99c779
From c2632c18a38854ae493718791f3fe9749c6ceb9d Mon Sep 17 00:00:00 2001
99c779
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
99c779
Date: Sat, 30 Jul 2016 15:15:14 +0200
99c779
Subject: [PATCH 08/43] Makefile: allow to pass additional LIBS
99c779
99c779
We need to be able to pass extra LIBS when our toolchain lacks NLS
99c779
support, this way we can build libintl and link to it.  A good example
99c779
is uClibc with locale support disabled.
99c779
99c779
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
99c779
Signed-off-by: Romain Naour <romain.naour@gmail.com>
99c779
---
99c779
 src/Makefile     | 2 +-
99c779
 src/gui/Makefile | 2 +-
99c779
 2 files changed, 2 insertions(+), 2 deletions(-)
99c779
99c779
diff --git a/src/Makefile b/src/Makefile
99c779
index b50586b..acbdbfa 100644
99c779
--- a/src/Makefile
99c779
+++ b/src/Makefile
99c779
@@ -30,7 +30,7 @@ ifneq ($(shell $(LD) --help 2| grep -- --as-needed), )
99c779
 	LDFLAGS+= -Wl,--as-needed
99c779
 endif
99c779
 LDSTATIC=-static
99c779
-LIBS=-llshw -lresolv
99c779
+LIBS+=-llshw -lresolv
99c779
 ifeq ($(SQLITE), 1)
99c779
 	LIBS+= $(shell pkg-config --libs sqlite3)
99c779
 endif
99c779
diff --git a/src/gui/Makefile b/src/gui/Makefile
99c779
index 332ce57..7f72e3f 100644
99c779
--- a/src/gui/Makefile
99c779
+++ b/src/gui/Makefile
99c779
@@ -11,7 +11,7 @@ INCLUDES=-I../core $(GTKINCLUDES)
99c779
 CXXFLAGS=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS)
99c779
 CFLAGS=$(CXXFLAGS) $(DEFINES)
99c779
 GTKLIBS=$(shell pkg-config gtk+-2.0 gmodule-2.0 --libs)
99c779
-LIBS=-L../core -llshw -lresolv $(GTKLIBS)
99c779
+LIBS+=-L../core -llshw -lresolv $(GTKLIBS)
99c779
 LDFLAGS=
99c779
 ifneq ($(shell $(LD) --help 2| grep -- --as-needed), )
99c779
 	LDFLAGS+= -Wl,--as-needed
99c779
-- 
99c779
2.10.2
99c779