mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Add libgcc to the set of libraries to link against
This commit is contained in:
parent
5cd3325f7e
commit
a03bd2f1e7
1 changed files with 9 additions and 0 deletions
|
|
@ -183,3 +183,12 @@ else
|
|||
endif
|
||||
|
||||
LDLIBS = -lnuttx
|
||||
|
||||
# Try to get the path to libgcc.a. Of course, this only works for GCC
|
||||
# toolchains.
|
||||
|
||||
LIBGCC = "${shell "$(CC)" $(ARCHCPUFLAGS) -print-libgcc-file-name 2>/dev/null}"
|
||||
ifneq ($(LIBGCC),)
|
||||
LDLIBPATH += -L ${shell dirname $(LIBGCC)}
|
||||
LDLIBS += -lgcc
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue