mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
test: add linker flag with pthread for pcm-multi-thread stress test
This test program is a pthread application, while Makefile has no flags
for linker about pthread library. This can cause below error.
$ make pcm-multi-thread
CCLD pcm-multi-thread
/usr/bin/ld: pcm-multi-thread.o: undefined reference to symbol 'pthread_cancel@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:523: recipe for target 'pcm-multi-thread' failed
make: *** [pcm-multi-thread] Error 1
This commit fixes the bug by adding a corresponding flag.
Fixes: 147093ac5b8d('test: Add pcm-multi-thread program')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
025e451b83
commit
42ff384a98
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ code_CFLAGS=-Wall -pipe -g -O2
|
||||||
chmap_LDADD=../src/libasound.la
|
chmap_LDADD=../src/libasound.la
|
||||||
audio_time_LDADD=../src/libasound.la
|
audio_time_LDADD=../src/libasound.la
|
||||||
pcm_multi_thread_LDADD=../src/libasound.la
|
pcm_multi_thread_LDADD=../src/libasound.la
|
||||||
|
pcm_multi_thread_LDFLAGS=-lpthread
|
||||||
user_ctl_element_set_LDADD=../src/libasound.la
|
user_ctl_element_set_LDADD=../src/libasound.la
|
||||||
user_ctl_element_set_CFLAGS=-Wall -g
|
user_ctl_element_set_CFLAGS=-Wall -g
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue