Remove deprecated ld option (--add-needed)#9141
Conversation
| if test "$jemalloc_base_dir" != "/usr"; then | ||
| TS_ADDTO(CPPFLAGS, [-I${jemalloc_include}]) | ||
| TS_ADDTO(LDFLAGS, [-L${jemalloc_ldflags}]) | ||
| TS_ADDTO(LDFLAGS, [-Wl,--add-needed -L${jemalloc_ldflags} -Wl,-rpath,${jemalloc_ldflags} -Wl,--no-as-needed]) |
There was a problem hiding this comment.
@duke8253 is this typo of --as-needed option? Because this line has --no-as-needed option at the end and it restores the default behavior.
If we really need --add-needed option here, --copy-dt-needed-entries is the replacement, but lld doesn't have it either.
There was a problem hiding this comment.
I don't think it's a typo because I remember coming back to this and thought it was a typo, but changing it broke stuff. Though I can't remember exactly what was it now, vaguely recall that something about the order of specifying those options made a difference.
|
[approve ci fedora] |
|
I'm +1 on this(and had tried to do it myself), but reverted it in #8533 Locally, I just added We should probably check if |
|
I checked with the devtoolset-9 on centos7 (similar env of #8529), it looks like this change works with |
|
Yeah, at the time there were some weird build errors on our centos test boxes. I'll find some time tomorrow to build it on there with the changes to see if things are working. |
duke8253
left a comment
There was a problem hiding this comment.
Works fine in my testings.
(cherry picked from commit 875c73e)
|
Cherry-picked to v9.2.x |
* asf/9.2.x: Updated ChangeLog Add docs for strategies.yaml hash_string (apache#9026) Fix hosting.config reloading (apache#9046) Remove unnecessary, dangerous casts from SET_HANDLER and SET_CONTINUATION invocations. (apache#9129) Remove deprecated ld option (--add-needed) (apache#9141)
While I'm trying mimalloc (and jemalloc) with llvm toolchain (
lld), I got the below error.It looks like
llddoesn't support this option. Alsolddeprecated this option.https://sourceware.org/binutils/docs/ld/Options.html