static build: do not use openssl engines

We want minimal static build. And this now also breaks with our openssl
since it tries to automatically dlopen some of the engine modules.
cute-signatures
Timo Teräs 2010-06-30 16:53:56 +03:00
parent fc4c60f233
commit dd6008995a
4 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
apk
apk.static
*.o
*.d
*.cmd

View File

@ -41,9 +41,10 @@ endif
CFLAGS_ALL += -D_ATFILE_SOURCE
CFLAGS_apk.o := -DAPK_VERSION=\"$(FULL_VERSION)\"
CFLAGS_apk-static.o := -DAPK_VERSION=\"$(FULL_VERSION)\" -DOPENSSL_NO_ENGINE
progs-$(STATIC) += apk.static
apk.static-objs := $(apk-objs)
apk.static-objs := $(filter-out apk.o,$(apk-objs)) apk-static.o
LDFLAGS_apk.static := -static
LDFLAGS_apk += -nopie -L$(obj)

1
src/apk-static.c Symbolic link
View File

@ -0,0 +1 @@
apk.c

View File

@ -12,13 +12,17 @@
#include <stdio.h>
#include <fcntl.h>
#include <ctype.h>
#include <errno.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <sys/stat.h>
#include <openssl/crypto.h>
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif
#include "apk_defines.h"
#include "apk_database.h"