summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKinsey Moore <kinsey.moore@oarcorp.com>2022-10-25 14:03:10 -0500
committerChris Johns <chrisj@rtems.org>2023-04-14 08:36:52 +1000
commit5a37722b066f5792aad80fb5b32fb3c056cf1607 (patch)
tree0af80afc7712c127bccdbd1447ae9af26511a2fe /spec
parent407c87cd88486a0336e73327457776684074d8f1 (diff)
spec/pkgconfig: Allow builds to override headers
This allows any builds targeting an installed RTEMS BSP to override headers in the installed BSP reliably, including headers previously installed by that or other builds. This includes applications, network stacks, libraries, and any other builds. Closes #4896
Diffstat (limited to 'spec')
-rw-r--r--spec/build/bsps/makecustom.yml2
-rw-r--r--spec/build/bsps/pkgconfig.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/build/bsps/makecustom.yml b/spec/build/bsps/makecustom.yml
index 139629b597..9f5f2f2e59 100644
--- a/spec/build/bsps/makecustom.yml
+++ b/spec/build/bsps/makecustom.yml
@@ -2,7 +2,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
build-type: config-file
content: |
include $$(RTEMS_ROOT)/make/custom/default.cfg
- CPU_DEFINES = -I$$(exec_prefix)/$$(RTEMS_BSP)/lib/include
+ CPU_DEFINES = -isystem$$(exec_prefix)/$$(RTEMS_BSP)/lib/include
CPU_CFLAGS = ${ABI_FLAGS}
CFLAGS_OPTIMIZE_V = ${OPTIMIZATION_FLAGS}
LDFLAGS = -B$$(exec_prefix)/$$(RTEMS_BSP)/lib ${PKGCONFIG_LDFLAGS}
diff --git a/spec/build/bsps/pkgconfig.yml b/spec/build/bsps/pkgconfig.yml
index a9462fcc95..8a3c3677a4 100644
--- a/spec/build/bsps/pkgconfig.yml
+++ b/spec/build/bsps/pkgconfig.yml
@@ -22,7 +22,7 @@ content: |
Name: ${ARCH}-rtems${__RTEMS_MAJOR__}-${BSP_NAME}
Version: ${RTEMS_VERSION}
Description: RTEMS BSP ${ARCH}/${BSP_NAME}
- Cflags: $${ABI_FLAGS} -I$${includedir}
+ Cflags: $${ABI_FLAGS} -isystem$${includedir}
Ldflags: -B$${libdir} ${PKGCONFIG_LDFLAGS}
Libs: -B$${libdir} ${PKGCONFIG_LDFLAGS}
copyrights: