summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-18 12:44:05 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-05-18 12:44:05 +0000
commitdb2be5e5bc4ce1071252c0745296cafcd457940f (patch)
treee4477a5b77f85b1777c508ec246caf51ebf74297 /Makefile
parenta06296168f37276e1b6a900ae87936561b1908b5 (diff)
downloadabuild-db2be5e5bc4ce1071252c0745296cafcd457940f.tar.bz2
abuild-db2be5e5bc4ce1071252c0745296cafcd457940f.tar.xz
abuild-tar: build with --as-needed so we dont link to libssl
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 904241e..801a037 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,7 @@ SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \
-e 's:@datadir@:$(datadir):g' \
-e 's:@abuildrepo@:$(abuildrepo):g'
+SSL_CFLAGS := $(shell pkg-config --cflags openssl)
SSL_LIBS := $(shell pkg-config --libs openssl)
.SUFFIXES: .sh.in .in
@@ -54,7 +55,10 @@ clean:
@rm -f $(USR_BIN_FILES)
abuild-tar: abuild-tar.c
- $(CC) -o $@ $(SSL_LIBS) $^
+ $(CC) -o $@ $^ -Wl,--as-needed $(SSL_LIBS)
+
+abuild-tar.static: abuild-tar.c
+ $(CC) -o $@ -static $(SSL_LIBS) $^
help:
@echo "$(P) makefile"