Skip to content

Commit c9d6e99

Browse files
masaori335zwoop
authored andcommitted
Remove deprecated ld option (--add-needed) (#9141)
(cherry picked from commit 875c73e)
1 parent 06b5745 commit c9d6e99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/jemalloc.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if test "$has_jemalloc" != "no"; then
5858
if test "$jemalloc_base_dir" != "/usr"; then
5959
TS_ADDTO(CPPFLAGS, [-I${jemalloc_include}])
6060
TS_ADDTO(LDFLAGS, [-L${jemalloc_ldflags}])
61-
TS_ADDTO(LDFLAGS, [-Wl,--add-needed -L${jemalloc_ldflags} -Wl,-rpath,${jemalloc_ldflags} -Wl,--no-as-needed])
61+
TS_ADDTO(LDFLAGS, [-Wl,--as-needed -L${jemalloc_ldflags} -Wl,-rpath,${jemalloc_ldflags} -Wl,--no-as-needed])
6262
TS_ADDTO_RPATH(${jemalloc_ldflags})
6363
fi
6464
# On Darwin, jemalloc symbols are prefixed with je_. Search for that first, then fall back

build/mimalloc.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if test "$has_mimalloc" != "no"; then
6161
if test "$mimalloc_base_dir" != "/usr"; then
6262
TS_ADDTO(CPPFLAGS, [-I${mimalloc_include}])
6363
TS_ADDTO(LDFLAGS, [-L${mimalloc_ldflags}])
64-
TS_ADDTO(LDFLAGS, [-Wl,--add-needed -L${mimalloc_ldflags} -Wl,-rpath,${mimalloc_ldflags} -Wl,--no-as-needed])
64+
TS_ADDTO(LDFLAGS, [-Wl,--as-needed -L${mimalloc_ldflags} -Wl,-rpath,${mimalloc_ldflags} -Wl,--no-as-needed])
6565
TS_ADDTO_RPATH(${mimalloc_ldflags})
6666
fi
6767
AC_SEARCH_LIBS([mi_malloc], [mimalloc], [mimalloc_has_libs=1])

0 commit comments

Comments
 (0)