2015-03-08 03:32:47

by Mike Frysinger

[permalink] [raw]
Subject: [PATCH crda] libreg: link against crypto libs

Since libreg uses funcs from the crypto lib, make sure we link them.

Signed-off-by: Mike Frysinger <[email protected]>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 8e345a1..77708e6 100644
--- a/Makefile
+++ b/Makefile
@@ -117,7 +117,7 @@ keys-%.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem)

$(LIBREG): regdb.h reglib.h reglib.c
$(NQ) ' CC ' $@
- $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^
+ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(LDLIBS)

install-libreg-headers:
$(NQ) ' INSTALL libreg-headers'
--
2.3.1



2015-03-09 22:12:08

by Mike Frysinger

[permalink] [raw]
Subject: [PATCH crda v2] libreg: link against crypto libs

Since libreg uses funcs from the crypto lib, make sure we link them.

Signed-off-by: Mike Frysinger <[email protected]>
---
v2
- the current LDLIBS mess includes -lreg in there which we have to strip

Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 8e345a1..5ba1664 100644
--- a/Makefile
+++ b/Makefile
@@ -117,7 +117,7 @@ keys-%.c: utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem)

$(LIBREG): regdb.h reglib.h reglib.c
$(NQ) ' CC ' $@
- $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^
+ $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ $(filter-out -lreg,$(LDLIBS))

install-libreg-headers:
$(NQ) ' INSTALL libreg-headers'
--
2.3.1