kselftest/alsa: Ensure _GNU_SOURCE is defined
BugLink: https://bugs.launchpad.net/bugs/2074091 [ Upstream commit 2032e61e24fe9fe55d6c7a34fb5506c911b3e280 ] 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: daef47b89efd ("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> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Portia Stephens <portia.stephens@canonical.com> Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
This commit is contained in:
committed by
Roxana Nicolescu
parent
483c6582bd
commit
263e10d09c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user