tools/elfutils: remove header symlink between subdirectories
authorMichael Pratt <mcpratt@pm.me>
Wed, 15 May 2024 23:43:00 +0000 (19:43 -0400)
committerRobert Marko <robimarko@gmail.com>
Mon, 8 Jul 2024 06:49:42 +0000 (08:49 +0200)
commitf9a1996367628d4e5a0849f58a2d29abb6b89bd5
treec87565d2dea545d28d4a21deb44977759093eb9c
parente7599942af8e14541166234349e9e49278455ef6
tools/elfutils: remove header symlink between subdirectories

Replace the symlink in the build recipe for gnulib
with an extra include path flag in CPPFLAGS to the lib subdirectory
so that it is the last in the order of include paths,
and use a quote escape to make the flag a literal string
in order to use Make variables within it.

The original reason this is necessary is because the config.h header
provided by the project at the top-level build directory
calls another header eu-config.h
which is stored in the lib subdirectory instead of the top-level,
and building the gnulib library requires the config.h header.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/15853
Signed-off-by: Robert Marko <robimarko@gmail.com>
tools/elfutils/Makefile