Respect environment LDFLAGS

This commit is contained in:
Timm Bäder 2021-09-23 11:12:20 +02:00
parent 585fa29be7
commit 152422ca7f
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -ruN libvisual-0.4.0/libvisual/Makefile.am libvisual-0.4.0.orig/libvisual/Makefile.am
--- libvisual-0.4.0/libvisual/Makefile.am 2006-02-20 09:20:58.000000000 +0100
+++ libvisual-0.4.0.orig/libvisual/Makefile.am 2021-09-23 11:00:27.137930658 +0200
@@ -29,7 +29,7 @@
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/libvisual \
-I$(top_builddir) -I$(top_builddir)/libvisual
-libvisual_@LIBVISUAL_VERSION_SUFFIX@_la_LDFLAGS = -export-dynamic -no-undefined
+libvisual_@LIBVISUAL_VERSION_SUFFIX@_la_LDFLAGS = $(LDFLAGS) -export-dynamic -no-undefined
libvisual_@LIBVISUAL_VERSION_SUFFIX@_la_SOURCES = lv_actor.c lv_input.c lv_event.c \
lv_bin.c lv_plugin.c lv_video.c lv_video_simd.c lv_mem.c \

View File

@ -2,7 +2,7 @@
Name: libvisual
Version: 0.4.0
Release: 33%{?dist}
Release: 34%{?dist}
Epoch: 1
Summary: Abstraction library for audio visualisation plugins
License: LGPLv2+
@ -15,6 +15,7 @@ BuildRequires: xorg-x11-proto-devel
Patch0: libvisual-0.4.0-better-altivec-detection.patch
Patch1: libvisual-0.4.0-inlinedefineconflict.patch
Patch2: libvisual-0.4.0-format-security.patch
Patch3: libvisual-0.4.0-respect-environment-ldflags.patch
%description
Libvisual is an abstraction library that comes between applications and
@ -44,6 +45,7 @@ This package contains the files needed to build an application with libvisual.
%patch0 -p1 -b .altivec-detection
%patch1 -p1 -b .inlinedefineconflict
%patch2 -p1 -b .format-security
%patch3 -p1 -b .ldflags
%build
%global optflags %{optflags} -fno-strict-aliasing
@ -107,6 +109,9 @@ find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
%changelog
* Thu Sep 23 2021 Timm Bäder <tbaeder@redhat.com> - 1:0.4.0-34
- Add patch to respect environment LDFLAGS
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.4.0-33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild