forked from Imagelibrary/rtems
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
This commit is contained in:
committed by
Chris Johns
parent
407c87cd88
commit
5a37722b06
@@ -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}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user