From 2b1a4ac84fd5fee86426fcb56ca0e78e94599eca Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sun, 20 Sep 2020 13:45:42 +0200 Subject: build: Fix linker path Use -B for the linker since some architectures use extra start files defined by the GCC specification and provided by the BSP, for example powerpc. Start files are not found by -L. In the long run, the GCC defined start files should be provided by GCC. This is a GCC 11 topic. Update #3818 --- 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 6240ce7ab0..a9462fcc95 100644 --- a/spec/build/bsps/pkgconfig.yml +++ b/spec/build/bsps/pkgconfig.yml @@ -23,8 +23,8 @@ content: | Version: ${RTEMS_VERSION} Description: RTEMS BSP ${ARCH}/${BSP_NAME} Cflags: $${ABI_FLAGS} -I$${includedir} - Ldflags: -L$${libdir} ${PKGCONFIG_LDFLAGS} - Libs: -L$${libdir} ${PKGCONFIG_LDFLAGS} + Ldflags: -B$${libdir} ${PKGCONFIG_LDFLAGS} + Libs: -B$${libdir} ${PKGCONFIG_LDFLAGS} copyrights: - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) enabled-by: true -- cgit v1.2.3