build: enforce linking with --no-undefined, add explicit -lpthread
In investigating x86/sse2 issues in recent webrtc-audio-processing-0.2 release, I found that it was possible for libwebrtc_audio_processing to contain undefined symbols. Attached is a patch that addresses this: * adds -Wl,--no-undefined to libwebrtc_audio_processing_la_LDFLAGS * adds explicit -lpthread linkage (else, there are undefined references to pthread-related symbols) Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
This commit is contained in:
parent
9a0e28cab0
commit
d58164e4d8
@ -166,8 +166,11 @@ libwebrtc_audio_processing_la_LIBADD = $(top_builddir)/webrtc/libwebrtc.la \
|
||||
$(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
|
||||
libwebrtc_audio_processing_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBWEBRTC_AUDIO_PROCESSING_VERSION_INFO)
|
||||
$(top_builddir)/webrtc/modules/audio_coding/libaudio_coding.la \
|
||||
-lpthread
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user