From 237570e6051d832d8265e082c34de290aada07d4 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 28 Nov 2024 15:23:00 +0100 Subject: [PATCH] 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. --- spec/build/bsps/pkgconfig.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/build/bsps/pkgconfig.yml b/spec/build/bsps/pkgconfig.yml index 5a490e25fc..5d5c162f0e 100644 --- a/spec/build/bsps/pkgconfig.yml +++ b/spec/build/bsps/pkgconfig.yml @@ -13,6 +13,7 @@ content: | includedir=$${libdir}/include ABI_FLAGS=${ABI_FLAGS} + LDFLAGS=-B$${libdir} ${PKGCONFIG_LDFLAGS} RTEMS_ARCH=${ARCH} RTEMS_BSP=${BSP_NAME} RTEMS_BSP_BASE=${BSP_BASE} @@ -25,7 +26,6 @@ content: | Version: ${RTEMS_VERSION} Description: RTEMS BSP ${ARCH}/${BSP_NAME} Cflags: $${ABI_FLAGS} -isystem$${includedir} - Ldflags: $${ABI_FLAGS} -B$${libdir} ${PKGCONFIG_LDFLAGS} Libs: $${ABI_FLAGS} -B$${libdir} ${PKGCONFIG_LDFLAGS} copyrights: - Copyright (C) 2020 embedded brains GmbH & Co. KG