Skip to content

Commit

Permalink
libsubcmd: Prepend KBUILD_HOSTCFLAGS
Browse files Browse the repository at this point in the history
This makes us use headers from sysroot instead of /usr/include.

Test: Build tangorpro on Fedora 39
Change-Id: I649b0828e714316bb7791c0adf77c04c55e4d33b
  • Loading branch information
luk1337 authored and engstk committed Sep 15, 2023
1 parent 00a5464 commit 57e4795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/lib/subcmd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ MAKEFLAGS += --no-print-directory

LIBFILE = $(OUTPUT)libsubcmd.a

CFLAGS := -ggdb3 -Wall -Wextra -std=gnu99 -fPIC
CFLAGS := $(KBUILD_HOSTCFLAGS) -ggdb3 -Wall -Wextra -std=gnu99 -fPIC

ifeq ($(DEBUG),0)
ifeq ($(feature-fortify-source), 1)
Expand Down

0 comments on commit 57e4795

Please sign in to comment.