Commit 2032e61e authored by Mark Brown's avatar Mark Brown Committed by Shuah Khan

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: daef47b8 ("selftests: Compile kselftest headers with -D_GNU_SOURCE")
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Reviewed-by: default avatarMuhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 1613e604
# SPDX-License-Identifier: GPL-2.0 # 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) LDLIBS += $(shell pkg-config --libs alsa)
ifeq ($(LDLIBS),) ifeq ($(LDLIBS),)
LDLIBS += -lasound LDLIBS += -lasound
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment