mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
kselftest/alsa: Ensure _GNU_SOURCE is defined
The pcmtest driver tests use the kselftest harness which requires that
_GNU_SOURCE is defined but nothing causes it to be defined. Since the
KHDR_INCLUDES Makefile variable has had the required define added let's
use that, this should provide some futureproofing.
Fixes: daef47b89e
("selftests: Compile kselftest headers with -D_GNU_SOURCE")
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
1613e604df
commit
2032e61e24
@ -1,7 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
#
|
||||
|
||||
CFLAGS += $(shell pkg-config --cflags alsa)
|
||||
CFLAGS += $(shell pkg-config --cflags alsa) $(KHDR_INCLUDES)
|
||||
LDLIBS += $(shell pkg-config --libs alsa)
|
||||
ifeq ($(LDLIBS),)
|
||||
LDLIBS += -lasound
|
||||
|
Loading…
Reference in New Issue
Block a user