diff options
Diffstat (limited to 'meta-networking')
| -rw-r--r-- | meta-networking/recipes-connectivity/crda/crda/fix-linking-of-libraries-used-by-reglib.patch | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/meta-networking/recipes-connectivity/crda/crda/fix-linking-of-libraries-used-by-reglib.patch b/meta-networking/recipes-connectivity/crda/crda/fix-linking-of-libraries-used-by-reglib.patch index aceb56df74..812e983798 100644 --- a/meta-networking/recipes-connectivity/crda/crda/fix-linking-of-libraries-used-by-reglib.patch +++ b/meta-networking/recipes-connectivity/crda/crda/fix-linking-of-libraries-used-by-reglib.patch | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | From 890f5bf2654b695a866262d72bfa9750af921a3b Mon Sep 17 00:00:00 2001 | ||
| 1 | From: Ben Hutchings <ben@decadent.org.uk> | 2 | From: Ben Hutchings <ben@decadent.org.uk> |
| 2 | Date: Sat, 23 Aug 2014 12:26:37 -0700 | 3 | Date: Sat, 23 Aug 2014 12:26:37 -0700 |
| 3 | Subject: Fix linking of libraries used by libreg | 4 | Subject: [PATCH] Fix linking of libraries used by libreg |
| 4 | 5 | ||
| 5 | The math and crypto libraries are called by and need to be linked to | 6 | The math and crypto libraries are called by and need to be linked to |
| 6 | libreg.so, not to the executables. | 7 | libreg.so, not to the executables. |
| @@ -9,10 +10,15 @@ Upstream-Status: Backport [http://www.spinics.net/lists/linux-wireless/msg126027 | |||
| 9 | 10 | ||
| 10 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | 11 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> |
| 11 | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> | 12 | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> |
| 13 | --- | ||
| 14 | Makefile | 8 ++++---- | ||
| 15 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
| 12 | 16 | ||
| 17 | diff --git a/Makefile b/Makefile | ||
| 18 | index a3ead30..da2dcc3 100644 | ||
| 13 | --- a/Makefile | 19 | --- a/Makefile |
| 14 | +++ b/Makefile | 20 | +++ b/Makefile |
| 15 | @@ -30,7 +30,7 @@ CFLAGS += -std=gnu99 -Wall -Werror -peda | 21 | @@ -30,7 +30,7 @@ CFLAGS += -std=gnu99 -Wall -Werror -pedantic |
| 16 | CFLAGS += -Wall -g | 22 | CFLAGS += -Wall -g |
| 17 | LDLIBREG += -lreg | 23 | LDLIBREG += -lreg |
| 18 | LDLIBS += $(LDLIBREG) | 24 | LDLIBS += $(LDLIBREG) |
| @@ -21,16 +27,14 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> | |||
| 21 | LIBREG += libreg.so | 27 | LIBREG += libreg.so |
| 22 | LDFLAGS += -L ./ | 28 | LDFLAGS += -L ./ |
| 23 | 29 | ||
| 24 | @@ -40,7 +40,7 @@ all_noverify: $(LIBREG) crda intersect r | 30 | @@ -40,13 +40,13 @@ all_noverify: $(LIBREG) crda intersect regdbdump db2rd optimize |
| 25 | 31 | ||
| 26 | ifeq ($(USE_OPENSSL),1) | 32 | ifeq ($(USE_OPENSSL),1) |
| 27 | CFLAGS += -DUSE_OPENSSL -DPUBKEY_DIR=\"$(RUNTIME_PUBKEY_DIR)\" `pkg-config --cflags openssl` | 33 | CFLAGS += -DUSE_OPENSSL -DPUBKEY_DIR=\"$(RUNTIME_PUBKEY_DIR)\" `pkg-config --cflags openssl` |
| 28 | -LDLIBS += `pkg-config --libs openssl` | 34 | -LDLIBS += `pkg-config --libs openssl` |
| 29 | +LIBREGLDLIBS += `pkg-config --libs openssl` | 35 | +LIBREGLDLIBS += `pkg-config --libs openssl` |
| 30 | 36 | ||
| 31 | ifeq ($(RUNTIME_PUBKEY_ONLY),1) | 37 | $(LIBREG): keys-ssl.c |
| 32 | CFLAGS += -DRUNTIME_PUBKEY_ONLY | ||
| 33 | @@ -51,7 +51,7 @@ endif | ||
| 34 | 38 | ||
| 35 | else | 39 | else |
| 36 | CFLAGS += -DUSE_GCRYPT | 40 | CFLAGS += -DUSE_GCRYPT |
| @@ -39,7 +43,7 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> | |||
| 39 | 43 | ||
| 40 | $(LIBREG): keys-gcrypt.c | 44 | $(LIBREG): keys-gcrypt.c |
| 41 | 45 | ||
| 42 | @@ -121,7 +121,7 @@ keys-%.c: utils/key2pub.py $(wildcard $( | 46 | @@ -116,7 +116,7 @@ keys-%.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem) |
| 43 | 47 | ||
| 44 | $(LIBREG): regdb.h reglib.h reglib.c | 48 | $(LIBREG): regdb.h reglib.h reglib.c |
| 45 | $(NQ) ' CC ' $@ | 49 | $(NQ) ' CC ' $@ |
| @@ -48,3 +52,6 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> | |||
| 48 | 52 | ||
| 49 | install-libreg-headers: | 53 | install-libreg-headers: |
| 50 | $(NQ) ' INSTALL libreg-headers' | 54 | $(NQ) ' INSTALL libreg-headers' |
| 55 | -- | ||
| 56 | 2.7.4 | ||
| 57 | |||
