When building for ARM EABI link against libgcc for the __aeabi_* functions.
This commit is contained in:
parent
363335d53e
commit
ce40a2ab5f
@ -42,6 +42,16 @@ LDFLAGS+= -shared -Wl,-Bsymbolic
|
||||
DPADD= ${LIBC_PIC}
|
||||
LDADD= -lc_pic
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "arm" && ${MK_ARM_EABI} != "no"
|
||||
# Some of the required math functions (div & mod) are implemented in libgcc
|
||||
# on ARM. The library also needs to be placed first to be correctly linked.
|
||||
# As some of the functions are used before we have shared libraries.
|
||||
DPADD+= ${LIBGCC}
|
||||
LDADD+= -lgcc
|
||||
.endif
|
||||
|
||||
|
||||
|
||||
.if ${MK_SYMVER} == "yes"
|
||||
LIBCDIR= ${TOPSRCDIR}/lib/libc
|
||||
VERSION_DEF= ${LIBCDIR}/Versions.def
|
||||
|
Loading…
Reference in New Issue
Block a user