Skip to content

Commit a4936ce

Browse files
author
Jason Evans
committed
Fix jemalloc.sh code generation.
Fix jemalloc.sh code generation by adding @SoreV@ and using it instead of @SoreV@ (which contains Makefile-specific variables).
1 parent 461ad5c commit a4936ce

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

bin/jemalloc.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ prefix=@prefix@
44
exec_prefix=@exec_prefix@
55
libdir=@libdir@
66

7-
@LD_PRELOAD_VAR@=${libdir}/libjemalloc.@SOREV@
7+
@LD_PRELOAD_VAR@=${libdir}/libjemalloc.@sorev@
88
export @LD_PRELOAD_VAR@
99
exec "$@"

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ libprefix="lib"
202202
DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
203203
RPATH='-Wl,-rpath,$(1)'
204204
SOREV='$(SO).$(REV)'
205+
sorev="${so}.${rev}"
205206
PIC_CFLAGS='-fPIC -DPIC'
206207

207208
dnl Heap profiling uses the log(3) function.
@@ -226,6 +227,7 @@ case "${host}" in
226227
force_tls="0"
227228
DSO_LDFLAGS='-shared -Wl,-dylib_install_name,$(@F)'
228229
SOREV='$(REV).$(SO)'
230+
sorev="${rev}.${so}"
229231
;;
230232
*-*-freebsd*)
231233
CFLAGS="$CFLAGS"
@@ -284,6 +286,7 @@ case "${host}" in
284286
libprefix=""
285287
exe=".exe"
286288
SOREV='$(SO)'
289+
sorev="${so}"
287290
PIC_CFLAGS=""
288291
;;
289292
*)
@@ -301,6 +304,7 @@ AC_SUBST([exe])
301304
AC_SUBST([libprefix])
302305
AC_SUBST([DSO_LDFLAGS])
303306
AC_SUBST([SOREV])
307+
AC_SUBST([sorev])
304308
AC_SUBST([PIC_CFLAGS])
305309

306310
JE_COMPILABLE([__attribute__ syntax],

0 commit comments

Comments
 (0)