[rtems commit] build: Fix linker path

Sebastian Huber sebh at rtems.org
Sun Sep 20 15:32:20 UTC 2020


Module:    rtems
Branch:    master
Commit:    2b1a4ac84fd5fee86426fcb56ca0e78e94599eca
Changeset: http://git.rtems.org/rtems/commit/?id=2b1a4ac84fd5fee86426fcb56ca0e78e94599eca

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sun Sep 20 13:45:42 2020 +0200

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 6240ce7..a9462fc 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



More information about the vc mailing list