We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08f6960 commit f439f7cCopy full SHA for f439f7c
package/pkg-cargo.mk
@@ -46,6 +46,14 @@ PKG_CARGO_ENV = \
46
CARGO_BUILD_TARGET="$(RUSTC_TARGET_NAME)" \
47
CARGO_TARGET_$(call UPPERCASE,$(RUSTC_TARGET_NAME))_LINKER=$(notdir $(TARGET_CROSS))gcc
48
49
+#
50
+# This is a workaround for https://github.com/rust-lang/compiler-builtins/issues/420
51
+# and should be removed when fixed upstream
52
53
+ifeq ($(NORMALIZED_ARCH),arm)
54
+ PKG_CARGO_ENV += RUSTFLAGS="-Clink-arg=-Wl,--allow-multiple-definition"
55
+endif
56
+
57
HOST_PKG_CARGO_ENV = \
58
$(PKG_COMMON_CARGO_ENV)
59
0 commit comments