Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From a88e806f9ce8cc071e81abad688643d53f393176 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alistair Francis <alistair.francis@wdc.com> |
| 3 | Date: Mon, 10 Sep 2018 14:18:38 -0700 |
| 4 | Subject: [PATCH 3/3] Makefile.inc: Allow extra libs to be specified |
| 5 | |
| 6 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> |
| 7 | Upstream-Status: Pending |
| 8 | --- |
| 9 | src/Makefile.inc | 2 ++ |
| 10 | src/common.inc | 2 ++ |
| 11 | src/tools/Makefile.inc | 1 + |
| 12 | 3 files changed, 5 insertions(+) |
| 13 | |
| 14 | diff --git a/src/common.inc b/src/common.inc |
| 15 | index 032cb83ea..2d5c4bedf 100644 |
| 16 | --- a/src/common.inc |
| 17 | +++ b/src/common.inc |
| 18 | @@ -74,6 +74,8 @@ GCOV_CFLAGS=-fprofile-arcs -ftest-coverage --coverage |
| 19 | GCOV_LDFLAGS=-fprofile-arcs -ftest-coverage |
| 20 | GCOV_LIBS=-lgcov |
| 21 | |
| 22 | +LIBS += $(EXTRA_LIBS) |
| 23 | + |
| 24 | osdep = $(1)_$(shell uname -s | tr "[:upper:]" "[:lower:]")$(2) |
| 25 | get_arch = $(shell $(CC) -dumpmachine | awk -F'[/-]' '{print $$1}') |
| 26 | |
| 27 | -- |
| 28 | 2.17.1 |
| 29 | |