LDFLAGS correction

Resolves: RHEL-33503
This commit is contained in:
Jakub Čajka 2024-06-28 10:13:22 +02:00
parent 4a7d8ea1e0
commit 35096580ef
5 changed files with 52 additions and 1 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

32
ldflags.patch Normal file
View File

@ -0,0 +1,32 @@
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"

View File

@ -1,11 +1,12 @@
Name: libzdnn
Version: 1.0.1
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Driver library for the IBM Z Neural Network Processing Assist Facility
License: Apache-2.0
Url: https://github.com/IBM/zDNN
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: ldflags.patch
ExclusiveArch: s390x
BuildRequires: gcc
@ -76,6 +77,10 @@ ln -s -r $RPM_BUILD_ROOT%{_libdir}/libzdnn.so.%{version} $RPM_BUILD_ROOT%{_libdi
%{_libdir}/libzdnn.a
%changelog
* Fri Jun 28 2024 Jakub Čajka<jcajka@redhat.com> - 1.0.1-6
- LDFLAGS correction
- Resolves: RHEL-33503
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.0.1-5
- Bump release for June 2024 mass rebuild

7
whatever.fmf Normal file
View File

@ -0,0 +1,7 @@
summary: Basic smoke test
discover:
- name: internal
how: fmf
url: git://pkgs.devel.redhat.com/tests/libzdnn
execute:
how: tmt