aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Norris <briannorris@chromium.org>2019-11-05 14:57:51 -0800
committerLuis Chamberlain <mcgrof@kernel.org>2019-11-12 22:34:04 +0000
commit9856751feaf7b102547cea678a5da6c94252d83d (patch)
treeabfb58f8575d5c62e494377702c1733fa44b8fe4
parentf4ef2531698fb9ba006e8b31a223b3269be8bc7c (diff)
downloadcrda-master.tar.gz
crda: Makefile: fix .so compilation line with some compilersHEADv4.15master
Write the CC rule such that it only tries to produce a single output file (the .so). When including the .h files in the compiler invocation, this suggests we should be producing pre-compiled headers too, which doesn't make sense in this context, and Clang happens not to like. Signed-off-by: Brian Norris <briannorris@chromium.org> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6169b1f..6ca26f3 100644
--- a/Makefile
+++ b/Makefile
@@ -114,9 +114,9 @@ keys-%.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem)
$(NQ) ' Trusted pubkeys:' $(wildcard $(PUBKEY_DIR)/*.pem)
$(Q)./utils/key2pub.py --$* $(wildcard $(PUBKEY_DIR)/*.pem) $@
-$(LIBREG): regdb.h reglib.h reglib.c
+$(LIBREG): reglib.c regdb.h reglib.h
$(NQ) ' CC ' $@
- $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^
+ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $<
install-libreg-headers:
$(NQ) ' INSTALL libreg-headers'