blob: 967a4c94fb23a6cd37445009576f504cbc0d0274 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From c02d1bf46174656cdb6f7c08fa3e8fa520edcd8e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 15 Jul 2017 10:19:22 -0700
4Subject: [PATCH] Add another variable LIBS to provides libraries from env
5
6Upstream-Status: Inactive-Upstream [lastcommit: 2022 lastrelease: 2016]
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 Makefile | 5 +++--
11 1 file changed, 3 insertions(+), 2 deletions(-)
12
13diff --git a/Makefile b/Makefile
14index 968c276..75abe44 100644
15--- a/Makefile
16+++ b/Makefile
17@@ -31,7 +31,8 @@ ifneq ($(VERBOSE_TEST),)
18 VERBOSE_TEST="--verbose"
19 endif
20
21-grubby_LIBS = -lblkid -lpopt
22+grubby_LIBS = -lblkid -lpopt ${LIBS}
23+rpm-sort_LIBS = ${LIBS}
24
25 all: grubby rpm-sort
26
27@@ -63,7 +64,7 @@ grubby:: $(OBJECTS)
28 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(grubby_LIBS)
29
30 rpm-sort::rpm-sort.o
31- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lrpmio
32+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lrpmio $(rpm-sort_LIBS)
33
34 clean:
35 rm -f *.o grubby rpm-sort *~
36--
372.25.1
38