mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
net-misc/tinyssh: Use pkg-config instead of hardcoding libsodium flags
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Closes: https://github.com/gentoo/gentoo/pull/32045 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
d9b7b84f3f
commit
4e5709ef2b
@@ -40,13 +40,15 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export PKG_CONFIG
|
||||
|
||||
if use sodium
|
||||
then
|
||||
emake \
|
||||
CC="$(tc-getCC)"
|
||||
LIBS="-lsodium" \
|
||||
CFLAGS="${CFLAGS} -I/usr/include/sodium" \
|
||||
LDFLAGS="${LDFLAGS} -L/usr/lib"
|
||||
CC="$(tc-getCC)" \
|
||||
LIBS="$("${PKG_CONFIG}" --libs libsodium)" \
|
||||
CFLAGS="${CFLAGS} $("${PKG_CONFIG}" --cflags libsodium)" \
|
||||
LDFLAGS="${LDFLAGS}"
|
||||
else
|
||||
emake CC="$(tc-getCC)"
|
||||
fi
|
||||
|
||||
@@ -40,13 +40,15 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export PKG_CONFIG
|
||||
|
||||
if use sodium
|
||||
then
|
||||
emake \
|
||||
CC="$(tc-getCC)"
|
||||
LIBS="-lsodium" \
|
||||
CFLAGS="${CFLAGS} -I/usr/include/sodium" \
|
||||
LDFLAGS="${LDFLAGS} -L/usr/lib"
|
||||
CC="$(tc-getCC)" \
|
||||
LIBS="$("${PKG_CONFIG}" --libs libsodium)" \
|
||||
CFLAGS="${CFLAGS} $("${PKG_CONFIG}" --cflags libsodium)" \
|
||||
LDFLAGS="${LDFLAGS}"
|
||||
else
|
||||
emake CC="$(tc-getCC)"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user