Skip to content

Commit 7a0f69f

Browse files
committed
Cleanup generated LDFLAGS for jemalloc
Use the already expanded jemalloc_ldflags instead of overwriting what was previously specified earlier in the file. Also, drop use --add-needed,--no-as-needed
1 parent 4623209 commit 7a0f69f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/jemalloc.m4

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

0 commit comments

Comments
 (0)