public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/AllegroOGG] rawhide: Fix annocheck 'bind-now' test failure for 'libAllegroOGG.so.0'
@ 2026-07-21 13:39 Michal Schorm
  0 siblings, 0 replies; only message in thread
From: Michal Schorm @ 2026-07-21 13:39 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/AllegroOGG
            Branch : rawhide
            Commit : d51104949c7068f434c3f8a2aeb07a5b126940e2
            Author : Michal Schorm <mschorm@redhat.com>
            Date   : 2026-07-15T22:15:53+02:00
            Stats  : +6/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/AllegroOGG/c/d51104949c7068f434c3f8a2aeb07a5b126940e2?branch=rawhide

            Log:
            Fix annocheck 'bind-now' test failure for 'libAllegroOGG.so.0'

Add '%{build_ldflags}' (which includes '-Wl,-z,now') to the gcc
shared library link command. The build section calls gcc directly
rather than using a Makefile, so the fix is a one-line addition
to the link invocation in the spec file.

Co-Authored-By: Claude AI <noreply@anthropic.com>

---
diff --git a/AllegroOGG.spec b/AllegroOGG.spec
index 43cf697..2d24800 100644
--- a/AllegroOGG.spec
+++ b/AllegroOGG.spec
@@ -1,6 +1,6 @@
 Name:           AllegroOGG
 Version:        1.0.3
-Release:        43%{?dist}
+Release:        44%{?dist}
 Summary:        Ogg library for use with the Allegro game library
 License:        BSD-3-Clause
 URL:            http://www.allegro.cc/resource/Libraries/Audio/alogg
@@ -36,7 +36,7 @@ the %{name} library.
 # makefile doesn't support creating an .so, and wants to use its own version
 # of libogg and libvorbis and there is only one source file so lets DIY
 gcc $RPM_OPT_FLAGS -fPIC -DPIC -Iinclude -c src/alogg.c -o src/alogg.o
-gcc -g -shared -Wl,-soname=lib%{name}.so.0 -o lib%{name}.so.0 \
+gcc -g -shared %{build_ldflags} -Wl,-soname=lib%{name}.so.0 -o lib%{name}.so.0 \
   src/alogg.o -logg -lvorbis -lvorbisfile $(allegro-config --libs)
 
 
@@ -64,6 +64,10 @@ install -m 644 include/* $RPM_BUILD_ROOT%{_includedir}/%{name}
 
 
 %changelog
+* Wed Jul 15 2026 Michal Schorm <mschorm@redhat.com> - 1.0.3-44
+- Add '%{build_ldflags}' to the shared library link command to fix annocheck
+  'bind-now' test failure
+
 * Wed Jul 15 2026 Michal Schorm <mschorm@redhat.com> - 1.0.3-43
 - Fix SPDX license tag: 'LicenseRef-Callaway-BSD' -> 'BSD-3-Clause'
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-21 13:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-21 13:39 [rpms/AllegroOGG] rawhide: Fix annocheck 'bind-now' test failure for 'libAllegroOGG.so.0' Michal Schorm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox