From 152422ca7fa7416177fefefccb85cf60fc522673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 23 Sep 2021 11:12:20 +0200 Subject: [PATCH] Respect environment LDFLAGS --- libvisual-0.4.0-respect-environment-ldflags.patch | 12 ++++++++++++ libvisual.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 libvisual-0.4.0-respect-environment-ldflags.patch diff --git a/libvisual-0.4.0-respect-environment-ldflags.patch b/libvisual-0.4.0-respect-environment-ldflags.patch new file mode 100644 index 0000000..7b0ca0f --- /dev/null +++ b/libvisual-0.4.0-respect-environment-ldflags.patch @@ -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 \ diff --git a/libvisual.spec b/libvisual.spec index bd1c67d..b162be2 100644 --- a/libvisual.spec +++ b/libvisual.spec @@ -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 - 1:0.4.0-34 +- Add patch to respect environment LDFLAGS + * Thu Jul 22 2021 Fedora Release Engineering - 1:0.4.0-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild