Last active
June 12, 2016 06:35
-
-
Save wrtcoder/ae3cb51c67f4789b8b900c462495a4d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -32,11 +32,12 @@ LDLIBREG += -lreg | |
| LDLIBS += $(LDLIBREG) | |
| LDLIBS += -lm | |
| LIBREG += libreg.so | |
| +LIBREG_STATIC += libreg.a | |
| LDFLAGS += -L ./ | |
| all: all_noverify verify | |
| -all_noverify: $(LIBREG) crda intersect regdbdump db2rd optimize | |
| +all_noverify: $(LIBREG) $(LIBREG_STATIC) crda intersect regdbdump db2rd optimize | |
| ifeq ($(USE_OPENSSL),1) | |
| CFLAGS += -DUSE_OPENSSL -DPUBKEY_DIR=\"$(RUNTIME_PUBKEY_DIR)\" `pkg-config --cflags openssl` | |
| @@ -46,7 +47,7 @@ $(LIBREG): keys-ssl.c | |
| else | |
| CFLAGS += -DUSE_GCRYPT | |
| -LDLIBS += -lgcrypt | |
| +LDLIBS += -lgcrypt -lgpg-error | |
| $(LIBREG): keys-gcrypt.c | |
| @@ -119,6 +120,11 @@ $(LIBREG): regdb.h reglib.h reglib.c | |
| $(NQ) ' CC ' $@ | |
| $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -shared -Wl,-soname,$(LIBREG) $^ | |
| +$(LIBREG_STATIC): regdb.h reglib.h reglib.c | |
| + $(NQ) ' CC ' $@ | |
| + $(Q)$(CC) $(CFLAGS) $(CPPFLAGS) -c reglib.c -o reglib.o | |
| + $(Q)$(AR) -rcs $(LIBREG_STATIC) reglib.o | |
| + | |
| install-libreg-headers: | |
| $(NQ) ' INSTALL libreg-headers' | |
| $(Q)mkdir -p $(DESTDIR)/$(INCLUDE_DIR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment