diff options
author | Brian Norris <briannorris@chromium.org> | 2019-11-05 14:57:51 -0800 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2019-11-12 22:34:04 +0000 |
commit | 9856751feaf7b102547cea678a5da6c94252d83d (patch) | |
tree | abfb58f8575d5c62e494377702c1733fa44b8fe4 | |
parent | f4ef2531698fb9ba006e8b31a223b3269be8bc7c (diff) | |
download | crda-master.tar.gz |
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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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' |