rust-bin: prefer-dynamic
We control static/dynamic by only making one or the other available. Apparently the default of prefer static causes duplicate symbols for the standard library.
This commit is contained in:
committed by
Steven Walter
parent
a91af9bbae
commit
8a6f084c66
@@ -12,6 +12,10 @@ FILES_${PN}-dbg += "${rustlibdir}/.debug"
|
||||
RUSTC_ARCHFLAGS += "-C opt-level=3 -L ${STAGING_DIR_HOST}/${rustlibdir}"
|
||||
EXTRA_OEMAKE += 'RUSTC_ARCHFLAGS="${RUSTC_ARCHFLAGS}"'
|
||||
|
||||
# Prevents multiple static copies of standard library modules
|
||||
# See https://github.com/rust-lang/rust/issues/19680
|
||||
RUSTC_FLAGS += "-C prefer-dynamic"
|
||||
|
||||
rustlib="${libdir}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}/rustlib/${HOST_SYS}/lib"
|
||||
|
||||
do_rust_bin_fixups() {
|
||||
|
||||
Reference in New Issue
Block a user