Brad Bishop | 7f28bc5 | 2017-12-03 23:42:40 -0500 | [diff] [blame] | 1 | These headers are not related to any Make rule but they do appear in |
| 2 | compiling of libreg.so, specifying .h files in compiler cmdline is flagged |
| 3 | as error by clang |
| 4 | |
| 5 | | clang-4.0: error: cannot specify -o when generating multiple output files |
| 6 | | make: *** [libreg.so] Error 1 |
| 7 | |
| 8 | This is how we see headers in cmdline |
| 9 | -O2 -fpic -std=gnu |
| 10 | 99 -Wall -Werror -pedantic -Wall -g -DUSE_GCRYPT -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -o libreg.so -shared -Wl,-soname,libreg.so |
| 11 | regdb.h reglib.h reglib.c keys-gcrypt.c -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -L ./ -lm -lgcrypt |
| 12 | |
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | |
| 15 | --- a/Makefile.kk 2016-11-15 04:54:53.338670000 +0000 |
| 16 | +++ a/Makefile 2016-11-15 04:55:07.718670000 +0000 |
| 17 | @@ -114,7 +114,7 @@ keys-%.c: utils/key2pub.py $(wildcard $( |
| 18 | $(NQ) ' Trusted pubkeys:' $(wildcard $(PUBKEY_DIR)/*.pem) |
| 19 | $(Q)./utils/key2pub.py --$* $(wildcard $(PUBKEY_DIR)/*.pem) $@ |
| 20 | |
| 21 | -$(LIBREG): regdb.h reglib.h reglib.c |
| 22 | +$(LIBREG): reglib.c |
| 23 | $(NQ) ' CC ' $@ |
| 24 | $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(LDFLAGS) $(LIBREGLDLIBS) |
| 25 | |