0e0f70b3d1
Fix the following static build failure raised since commit
0ddb20c3ad
:
/home/giuliobenetti/autobuild/run/instance-0/output-1/host/bin/xtensa-buildroot-linux-uclibc-gcc -o janet janet.p/meson-generated_.._janet.c.o janet.p/src_mainclient_shell.c.o -Wl,--as-needed -Wl,--allow-shlib-undefined -Wl,-O1 -Wl,--start-group -latomic -lm -ldl -Wl,--end-group -pthread
/home/giuliobenetti/autobuild/run/instance-0/output-1/host/lib/gcc/xtensa-buildroot-linux-uclibc/10.3.0/../../../../xtensa-buildroot-linux-uclibc/bin/ld: /home/giuliobenetti/autobuild/run/instance-0/output-1/host/lib/gcc/xtensa-buildroot-linux-uclibc/10.3.0/libgcc.a(unwind-dw2-fde-dip.o): in function `_Unwind_Find_registered_FDE':
/home/giuliobenetti/autobuild/run/instance-0/output-1/build/host-gcc-final-10.3.0/build/xtensa-buildroot-linux-uclibc/libgcc/../../../libgcc/unwind-dw2-fde.c:1043: undefined reference to `dl_iterate_phdr'
Fixes:
- http://autobuild.buildroot.org/results/d6cd842bd156abe3d77b72a7a108a5233fa19e20
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
28 lines
649 B
Makefile
28 lines
649 B
Makefile
################################################################################
|
|
#
|
|
# janet
|
|
#
|
|
################################################################################
|
|
|
|
JANET_VERSION = 1.18.1
|
|
JANET_SITE = $(call github,janet-lang,janet,v$(JANET_VERSION))
|
|
JANET_LICENSE = MIT
|
|
JANET_LICENSE_FILES = LICENSE
|
|
|
|
JANET_INSTALL_STAGING = YES
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
JANET_CONF_OPTS += -Ddynamic_modules=false
|
|
endif
|
|
|
|
# Uses __atomic_fetch_add_4
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
JANET_LDFLAGS += $(TARGET_LDFLAGS) -latomic
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
|
JANET_CONF_OPTS += -Dsingle_threaded=true
|
|
endif
|
|
|
|
$(eval $(meson-package))
|