build: Provide LDFLAGS for pkg-config

Some pkg-config variants perform transformations on the --libs options.
This may lead to completely broken linker options.  Provide the LDFLAGS
as a variable.  Remove "Ldflags:" since this is an unsupported field.

Update #5169.
This commit is contained in:
Sebastian Huber
2024-11-28 15:23:00 +01:00
committed by Kinsey Moore
parent f4c179c610
commit 237570e605

View File

@@ -13,6 +13,7 @@ content: |
includedir=$${libdir}/include includedir=$${libdir}/include
ABI_FLAGS=${ABI_FLAGS} ABI_FLAGS=${ABI_FLAGS}
LDFLAGS=-B$${libdir} ${PKGCONFIG_LDFLAGS}
RTEMS_ARCH=${ARCH} RTEMS_ARCH=${ARCH}
RTEMS_BSP=${BSP_NAME} RTEMS_BSP=${BSP_NAME}
RTEMS_BSP_BASE=${BSP_BASE} RTEMS_BSP_BASE=${BSP_BASE}
@@ -25,7 +26,6 @@ content: |
Version: ${RTEMS_VERSION} Version: ${RTEMS_VERSION}
Description: RTEMS BSP ${ARCH}/${BSP_NAME} Description: RTEMS BSP ${ARCH}/${BSP_NAME}
Cflags: $${ABI_FLAGS} -isystem$${includedir} Cflags: $${ABI_FLAGS} -isystem$${includedir}
Ldflags: $${ABI_FLAGS} -B$${libdir} ${PKGCONFIG_LDFLAGS}
Libs: $${ABI_FLAGS} -B$${libdir} ${PKGCONFIG_LDFLAGS} Libs: $${ABI_FLAGS} -B$${libdir} ${PKGCONFIG_LDFLAGS}
copyrights: copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG - Copyright (C) 2020 embedded brains GmbH & Co. KG