!19 [sync] PR-14: 增加BIND_NOW安全编译选项

From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2022-12-08 09:15:57 +00:00 committed by Gitee
commit 84a19d386c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,25 @@
From dcc6439b854a0e1728c1f0a8dc451c53621c61e6 Mon Sep 17 00:00:00 2001
From: sunguoshuai <sunguoshuai@huawei.com>
Date: Wed, 1 Sep 2021 17:01:28 +0800
Subject: [PATCH] fix missing bind_now
---
src/makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/makefile b/src/makefile
index 886237f..c2715df 100644
--- a/src/makefile
+++ b/src/makefile
@@ -15,7 +15,7 @@ INSTALL_BINARY_DIR = /usr/bin/
INCLUDES = -I.
LIBRARIES = -ldl -lm
-CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC
+CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC -Wl,-z,now
CXXFLAGS = $(CFLAGS)
PLUGINS = ../plugins/amp.so \
../plugins/delay.so \
--
2.30.0

View File

@ -1,11 +1,12 @@
Name: ladspa
Version: 1.13
Release: 22
Release: 23
Summary: Linux Audio Developer's Simple Plugin API (LADSPA)
License: LGPLv2+
License: LGPLv2.1-only
URL: http://www.ladspa.org/
Source: http://www.ladspa.org/download/%{name}_sdk_%{version}.tgz
Patch0001: ladspa-1.13-plugindir.patch
Patch0002: 0001-fix-missing-bind_now.patch
BuildRequires: perl-interpreter gcc-c++
%description
@ -50,5 +51,8 @@ mkdir -p $RPM_BUILD_ROOT%{_datadir}/ladspa/rdf
%changelog
* Wed Sep 1 2021 Zhengtang Gong <gongzhengtang@huawei.com> - 1.13-23
- add bind now
* Fri Nov 8 2019 Yiru Wang <wangyiru1@huawei.com> - 1.13-22
- Pakcage init