diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-11-15 05:01:51 +0000 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2017-01-29 19:30:42 -0500 |
commit | 401326cbdd2e58df2b23e821141885bc3b66c518 (patch) | |
tree | 05d97cbeb266edaa447a6d2c4fffc6e9ac94f5c4 /meta-networking | |
parent | 362fdb3f438d122b029dfe4cb8a206affa9bd7c3 (diff) | |
download | meta-openembedded-401326cbdd2e58df2b23e821141885bc3b66c518.tar.gz |
crda: Fix build with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-connectivity/crda/crda/make.patch | 25 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/crda/crda_3.18.bb | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/crda/crda/make.patch b/meta-networking/recipes-connectivity/crda/crda/make.patch new file mode 100644 index 000000000..0b737852c --- /dev/null +++ b/meta-networking/recipes-connectivity/crda/crda/make.patch | |||
@@ -0,0 +1,25 @@ | |||
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 | |||
diff --git a/meta-networking/recipes-connectivity/crda/crda_3.18.bb b/meta-networking/recipes-connectivity/crda/crda_3.18.bb index 00c358dab..4b704fe5b 100644 --- a/meta-networking/recipes-connectivity/crda/crda_3.18.bb +++ b/meta-networking/recipes-connectivity/crda/crda_3.18.bb | |||
@@ -11,6 +11,7 @@ SRC_URI = "https://www.kernel.org/pub/software/network/${BPN}/${BP}.tar.xz \ | |||
11 | file://fix-linking-of-libraries-used-by-reglib.patch \ | 11 | file://fix-linking-of-libraries-used-by-reglib.patch \ |
12 | file://fix-gcc-6-unused-variables.patch \ | 12 | file://fix-gcc-6-unused-variables.patch \ |
13 | file://0001-Makefile-respect-LDFLAGS-for-libreg.patch \ | 13 | file://0001-Makefile-respect-LDFLAGS-for-libreg.patch \ |
14 | file://make.patch \ | ||
14 | " | 15 | " |
15 | SRC_URI[md5sum] = "0431fef3067bf503dfb464069f06163a" | 16 | SRC_URI[md5sum] = "0431fef3067bf503dfb464069f06163a" |
16 | SRC_URI[sha256sum] = "43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf" | 17 | SRC_URI[sha256sum] = "43fcb9679f8b75ed87ad10944a506292def13e4afb194afa7aa921b01e8ecdbf" |