abuild-tar: build with --as-needed so we dont link to libssl
This commit is contained in:
parent
a06296168f
commit
db2be5e5bc
6
Makefile
6
Makefile
@ -35,6 +35,7 @@ SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \
|
|||||||
-e 's:@datadir@:$(datadir):g' \
|
-e 's:@datadir@:$(datadir):g' \
|
||||||
-e 's:@abuildrepo@:$(abuildrepo):g'
|
-e 's:@abuildrepo@:$(abuildrepo):g'
|
||||||
|
|
||||||
|
SSL_CFLAGS := $(shell pkg-config --cflags openssl)
|
||||||
SSL_LIBS := $(shell pkg-config --libs openssl)
|
SSL_LIBS := $(shell pkg-config --libs openssl)
|
||||||
|
|
||||||
.SUFFIXES: .sh.in .in
|
.SUFFIXES: .sh.in .in
|
||||||
@ -54,7 +55,10 @@ clean:
|
|||||||
@rm -f $(USR_BIN_FILES)
|
@rm -f $(USR_BIN_FILES)
|
||||||
|
|
||||||
abuild-tar: abuild-tar.c
|
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:
|
help:
|
||||||
@echo "$(P) makefile"
|
@echo "$(P) makefile"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user