Skip to content

Commit 794be8d

Browse files
committed
rust: drop adding --enable-new-dtags
--enable-new-dtags is the default since Rust 1.7.0 due to rust-lang/rust#30378. Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
1 parent cd04c18 commit 794be8d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

recipes-devtools/rust/rust.inc

+3-6
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,9 @@ TARGET_ENDIAN[i586] = "little"
124124
TARGET_POINTER_WIDTH[i586] = "32"
125125
PRE_LINK_ARGS[i586] = "-Wl,--as-needed -m32"
126126

127-
# enable-new-dtags causes rpaths to be inserted as DT_RUNPATH (as well as
128-
# DT_RPATH), which lets LD_LIBRARY_PATH override them
129-
RPATH_LDFLAGS = "-Wl,--enable-new-dtags"
130-
TARGET_PRE_LINK_ARGS = "${RPATH_LDFLAGS} ${TARGET_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
131-
BUILD_PRE_LINK_ARGS = "${RPATH_LDFLAGS} ${BUILD_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
132-
HOST_PRE_LINK_ARGS = "${RPATH_LDFLAGS} ${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
127+
TARGET_PRE_LINK_ARGS = "${TARGET_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
128+
BUILD_PRE_LINK_ARGS = "${BUILD_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
129+
HOST_PRE_LINK_ARGS = "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS}"
133130

134131
# These LDFLAGS have '-L' options in them. We need these to come last so they
135132
# don't screw up the link order and pull in the wrong rust build/version.

0 commit comments

Comments
 (0)