diff --git a/c-deps/jemalloc b/c-deps/jemalloc index 04380e79f1e2..896ed3a8b3f4 160000 --- a/c-deps/jemalloc +++ b/c-deps/jemalloc @@ -1 +1 @@ -Subproject commit 04380e79f1e2428bd0ad000bbc6e3d2dfc6b66a5 +Subproject commit 896ed3a8b3f41998d4fb4d625d30ac63ef2d51fb diff --git a/pkg/ccl/storageccl/engineccl/rocksdb_jemalloc.go b/pkg/ccl/storageccl/engineccl/rocksdb_jemalloc.go index e6e988b0ebea..3c3669479c15 100644 --- a/pkg/ccl/storageccl/engineccl/rocksdb_jemalloc.go +++ b/pkg/ccl/storageccl/engineccl/rocksdb_jemalloc.go @@ -20,5 +20,5 @@ package engineccl // #cgo LDFLAGS: -ljemalloc // #cgo dragonfly freebsd LDFLAGS: -lm -// #cgo linux LDFLAGS: -lrt -lm -lpthread +// #cgo linux LDFLAGS: -lrt -lm -lpthread -ldl import "C" diff --git a/pkg/cli/start_jemalloc.go b/pkg/cli/start_jemalloc.go index 5390d031a632..964ace21cfdf 100644 --- a/pkg/cli/start_jemalloc.go +++ b/pkg/cli/start_jemalloc.go @@ -21,7 +21,7 @@ package cli // #cgo CPPFLAGS: -DJEMALLOC_NO_DEMANGLE // #cgo LDFLAGS: -ljemalloc // #cgo dragonfly freebsd LDFLAGS: -lm -// #cgo linux LDFLAGS: -lrt -lm -lpthread +// #cgo linux LDFLAGS: -lrt -lm -lpthread -ldl // // #include // #include diff --git a/pkg/server/status/runtime_jemalloc.go b/pkg/server/status/runtime_jemalloc.go index d7b00db57ca0..171d1d4e04a7 100644 --- a/pkg/server/status/runtime_jemalloc.go +++ b/pkg/server/status/runtime_jemalloc.go @@ -27,7 +27,7 @@ package status // // Manually force the presence of these symbols on macOS. // #cgo darwin LDFLAGS: -u_je_zone_register // #cgo dragonfly freebsd LDFLAGS: -lm -// #cgo linux LDFLAGS: -lrt -lm -lpthread +// #cgo linux LDFLAGS: -lrt -lm -lpthread -ldl // // #include // diff --git a/pkg/storage/engine/rocksdb_jemalloc.go b/pkg/storage/engine/rocksdb_jemalloc.go index 3b1ca9e19253..639fac2b05f3 100644 --- a/pkg/storage/engine/rocksdb_jemalloc.go +++ b/pkg/storage/engine/rocksdb_jemalloc.go @@ -20,5 +20,5 @@ package engine // #cgo LDFLAGS: -ljemalloc // #cgo dragonfly freebsd LDFLAGS: -lm -// #cgo linux LDFLAGS: -lrt -lm -lpthread +// #cgo linux LDFLAGS: -lrt -lm -lpthread -ldl import "C"