This is an automated email from the ASF dual-hosted git repository.

rrm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 8de830b  Partial of revert "Cleanup generated LDFLAGS for jemalloc 
(#8285)" (#8533)
8de830b is described below

commit 8de830b0bb3ec1f8acf37b79990aa229f9713de8
Author: Randall Meyer <r...@apache.org>
AuthorDate: Tue Dec 7 09:12:42 2021 -0800

    Partial of revert "Cleanup generated LDFLAGS for jemalloc (#8285)" (#8533)
    
    This reverts commit 9b3cde501d9f72d250a34f6d4742c816e1e7797b.
    
    Restoring --add-needed, but keeping the corrected path
---
 build/jemalloc.m4 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/build/jemalloc.m4 b/build/jemalloc.m4
index 8306a83..22eccd7 100644
--- a/build/jemalloc.m4
+++ b/build/jemalloc.m4
@@ -54,7 +54,8 @@ if test "$has_jemalloc" != "no"; then
   jemalloc_has_libs=0
   if test "$jemalloc_base_dir" != "/usr"; then
     TS_ADDTO(CPPFLAGS, [-I${jemalloc_include}])
-    TS_ADDTO(LDFLAGS, [-L${jemalloc_ldflags} -Wl,-rpath,${jemalloc_ldflags}])
+    TS_ADDTO(LDFLAGS, [-L${jemalloc_ldflags}])
+    TS_ADDTO(LDFLAGS, [-Wl,--add-needed -L${jemalloc_ldflags} 
-Wl,-rpath,${jemalloc_ldflags} -Wl,--no-as-needed])
     TS_ADDTO_RPATH(${jemalloc_ldflags})
   fi
   # On Darwin, jemalloc symbols are prefixed with je_. Search for that first, 
then fall back

Reply via email to