summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-03-28 11:28:41 +0300
committerTimo Teräs <timo.teras@iki.fi>2012-03-28 11:28:41 +0300
commit86bfc631abc98256a99f3b771c0538c2c3b420c5 (patch)
treee4bd557708058c937f93eb3dd2366682d85e6ae0 /src
parent5ae0206d0b1ed64ef936b4de3bf27833c5892a59 (diff)
downloadapk-tools-86bfc631abc98256a99f3b771c0538c2c3b420c5.tar.gz
apk-tools-86bfc631abc98256a99f3b771c0538c2c3b420c5.tar.bz2
apk-tools-86bfc631abc98256a99f3b771c0538c2c3b420c5.tar.xz
apk-tools-86bfc631abc98256a99f3b771c0538c2c3b420c5.zip
build: openssl seems to require -ldl for now, so add that
Diffstat (limited to 'src')
-rw-r--r--src/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 253c251..5dc0616 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -58,6 +58,7 @@ CFLAGS_apk-test.o := -DAPK_VERSION=\"$(FULL_VERSION)\" -DOPENSSL_NO_ENGINE -DTES
progs-$(STATIC) += apk.static
apk.static-objs := $(filter-out apk.o,$(apk-objs)) apk-static.o
LDFLAGS_apk.static := -static
+LIBS_apk.static := -Wl,--as-needed -ldl -Wl,--no-as-needed
LDFLAGS_apk += -nopie -L$(obj)
LDFLAGS_apk-test += -nopie -L$(obj)