simpler/upstreamable no_undefined.patch (fdo#96244)

This commit is contained in:
Rex Dieter 2016-05-27 08:55:16 -05:00
parent 0197cac1f9
commit 19762cbe8a
2 changed files with 5 additions and 28 deletions

View File

@ -1,15 +1,3 @@
diff -up webrtc-audio-processing-0.2/configure.ac.no_undefined webrtc-audio-processing-0.2/configure.ac
--- webrtc-audio-processing-0.2/configure.ac.no_undefined 2016-05-16 11:35:36.770987385 -0500
+++ webrtc-audio-processing-0.2/configure.ac 2016-05-16 11:37:51.686505286 -0500
@@ -42,7 +42,7 @@ AS_CASE(["${host}"],
[*-*linux*],
[
OS_CFLAGS="-DWEBRTC_LINUX"
- PLATFORM_CFLAGS="-DWEBRTC_POSIX"
+ PLATFORM_CFLAGS="-DWEBRTC_POSIX -pthread"
],
[*-*darwin*],
[
diff -up webrtc-audio-processing-0.2/webrtc/modules/audio_processing/Makefile.am.no_undefined webrtc-audio-processing-0.2/webrtc/modules/audio_processing/Makefile.am
--- webrtc-audio-processing-0.2/webrtc/modules/audio_processing/Makefile.am.no_undefined 2015-11-19 06:41:44.000000000 -0600
+++ webrtc-audio-processing-0.2/webrtc/modules/audio_processing/Makefile.am 2016-05-16 11:35:36.772987393 -0500
@ -24,18 +12,3 @@ diff -up webrtc-audio-processing-0.2/webrtc/modules/audio_processing/Makefile.am
# FIXME: The MIPS optimisations need to be hooked up once we have the
# autotools conditionals in place
diff -up webrtc-audio-processing-0.2/webrtc/modules/audio_processing/Makefile.in.no_undefined webrtc-audio-processing-0.2/webrtc/modules/audio_processing/Makefile.in
--- webrtc-audio-processing-0.2/webrtc/modules/audio_processing/Makefile.in.no_undefined 2015-11-19 06:41:56.000000000 -0600
+++ webrtc-audio-processing-0.2/webrtc/modules/audio_processing/Makefile.in 2016-05-16 11:35:44.151015614 -0500
@@ -580,9 +580,9 @@ libwebrtc_audio_processing_la_LIBADD = $
$(top_builddir)/webrtc/base/libbase.la \
$(top_builddir)/webrtc/system_wrappers/libsystem_wrappers.la \
$(top_builddir)/webrtc/common_audio/libcommon_audio.la \
- $(top_builddir)/webrtc/modules/audio_coding/libaudio_coding.la
+ $(top_builddir)/webrtc/modules/audio_coding/libaudio_coding.la -lpthread
-libwebrtc_audio_processing_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBWEBRTC_AUDIO_PROCESSING_VERSION_INFO)
+libwebrtc_audio_processing_la_LDFLAGS = $(AM_LDFLAGS) -Wl,--no-undefined -version-info $(LIBWEBRTC_AUDIO_PROCESSING_VERSION_INFO)
# FIXME: The MIPS optimisations need to be hooked up once we have the
# autotools conditionals in place

View File

@ -1,13 +1,14 @@
Name: webrtc-audio-processing
Version: 0.2
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Library for echo cancellation
License: BSD
URL: http://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/
Source0: http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{name}-%{version}.tar.xz
Patch0: webrtc-fix-typedefs-on-other-arches.patch
# https://bugs.freedesktop.org/show_bug.cgi?id=96244
Patch1: webrtc-audio-processing-0.2-no_undefined.patch
Patch2: webrtc-audio-processing-0.2-x86_msse2.patch
Patch3: webrtc-audio-processing-0.2-x86_sse2_runtime_detection.patch
@ -82,6 +83,9 @@ rm -fv %{buildroot}%{_libdir}/lib*.la
%changelog
* Fri May 27 2016 Rex Dieter <rdieter@fedoraproject.org> - 0.2-6
- simpler/upstreamable no_undefined.patch (fdo#96244)
* Wed May 25 2016 Than Ngo <than@redhat.com> - 0.2-5
- add url to upstream bug report