Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 1 | From c02d1bf46174656cdb6f7c08fa3e8fa520edcd8e Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sat, 15 Jul 2017 10:19:22 -0700 |
| 4 | Subject: [PATCH] Add another variable LIBS to provides libraries from env |
| 5 | |
| 6 | Upstream-Status: Inactive-Upstream [lastcommit: 2022 lastrelease: 2016] |
| 7 | |
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 9 | --- |
| 10 | Makefile | 5 +++-- |
| 11 | 1 file changed, 3 insertions(+), 2 deletions(-) |
| 12 | |
| 13 | diff --git a/Makefile b/Makefile |
| 14 | index 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 | -- |
| 37 | 2.25.1 |
| 38 | |