You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libzdnn/SOURCES/ldflags.patch

33 lines
1.8 KiB

From 4ae92a0b84751aa5880f5fa8a18b2295de1b8adb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20=C4=8Cajka?= <jcajka@users.noreply.github.com>
Date: Fri, 21 Jun 2024 17:12:06 +0200
Subject: [PATCH] fix: use system LDFLAGS (#20)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- pass system LDFLAGS to linker in all cases
Signed-off-by: Jakub Čajka <jcajka@redhat.com>
---
config.zdnn | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/config.zdnn b/config.zdnn
index 2eb5948..0396098 100644
--- a/config.zdnn
+++ b/config.zdnn
@@ -43,9 +43,9 @@ case "${target}" in
LIBNAME_PRIVATE="${LIBNAME_PRIVATE:-${LIBNAME}-private}"
LIBSONAME_PRIVATE="${LIBSONAME_PRIVATE:-${LIBNAME_PRIVATE}.so.0}"
LDFLAGS="${LDFLAGS:-}"
- LDFLAGS_SHARED="-shared -Wl,-Bsymbolic-functions -Wl,-soname,${LIBSONAME} -Wl,--version-script=zdnn.map -lm ${LDFLAGS_SHARED:-}"
- LDFLAGS_SHARED_EXPORTALL="-shared -Wl,-Bsymbolic-functions -Wl,-soname,${LIBSONAME_PRIVATE} -Wl,--version-script=zdnn_exportall.map -lm ${LDFLAGS_SHARED_EXPORTALL:-}"
- LDFLAGS_TEST="-L ../zdnn/${SODIR} -l${LIBNAME_PRIVATE#lib} ../zdnn/${SODIR}/${LIBNAME_PRIVATE}.so -lm ${LDFLAGS_TEST:-}"
+ LDFLAGS_SHARED="-shared -Wl,-Bsymbolic-functions -Wl,-soname,${LIBSONAME} -Wl,--version-script=zdnn.map -lm ${LDFLAGS_SHARED:-} ${LDFLAGS:-}"
+ LDFLAGS_SHARED_EXPORTALL="-shared -Wl,-Bsymbolic-functions -Wl,-soname,${LIBSONAME_PRIVATE} -Wl,--version-script=zdnn_exportall.map -lm ${LDFLAGS_SHARED_EXPORTALL:-} ${LDFLAGS:-}"
+ LDFLAGS_TEST="-L ../zdnn/${SODIR} -l${LIBNAME_PRIVATE#lib} ../zdnn/${SODIR}/${LIBNAME_PRIVATE}.so -lm ${LDFLAGS_TEST:-} ${LDFLAGS:-}"
LD_PATH_VAR="${LD_PATH_VAR:-LD_LIBRARY_PATH}"
ECHOFLAGS="-e"
ZDNN_TMAKE_FILES="t-static t-libsoname t-gccexpo t-symcheck t-listings"