From c7912a997b65c53931a317369c8b6c4985d3fba2 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Tue, 14 Jan 2025 15:37:46 -0600 Subject: [PATCH] spec/pkgconfig: Account for separate compilation and linking When compilation and linking are performed separately, some platforms (i.e. RISC-V) may require that ABI flags are provided during the linking step as well as the compilation step. --- spec/build/bsps/pkgconfig.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/build/bsps/pkgconfig.yml b/spec/build/bsps/pkgconfig.yml index afaffbbf0f..5a490e25fc 100644 --- a/spec/build/bsps/pkgconfig.yml +++ b/spec/build/bsps/pkgconfig.yml @@ -25,8 +25,8 @@ content: | Version: ${RTEMS_VERSION} Description: RTEMS BSP ${ARCH}/${BSP_NAME} Cflags: $${ABI_FLAGS} -isystem$${includedir} - Ldflags: -B$${libdir} ${PKGCONFIG_LDFLAGS} - Libs: -B$${libdir} ${PKGCONFIG_LDFLAGS} + Ldflags: $${ABI_FLAGS} -B$${libdir} ${PKGCONFIG_LDFLAGS} + Libs: $${ABI_FLAGS} -B$${libdir} ${PKGCONFIG_LDFLAGS} copyrights: - Copyright (C) 2020 embedded brains GmbH & Co. KG enabled-by: true