Project

General

Profile

Actions

Bug #13175

closed

Building --with-jemalloc on FreeBSD fails

Added by spil (Bernard Spil) almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:79368]

Description

Building Ruby 2.3 on FreeBSD 11 with --with-jemalloc leads to linking issues.

As of FreeBSD 10.0 jemalloc is in FreeBSD's libc and thus -ljemalloc will trigger a linktime error.

Removing -ljemalloc from the linker solves the issue

+@@ -4015,9 +4016,6 @@ AS_CASE(["$target_os"],
+ AS_CASE(["$with_gmp: $SOLIBS "], [no:* | *' -lgmp '*|*' $(LIBS) '*], [],
+ 	[SOLIBS="-lgmp $SOLIBS"])
+ 
+-AS_CASE(["$with_jemalloc: $LIBS "], [no:* | *' -ljemalloc '*], [],
+-	[LIBS="-ljemalloc $LIBS"])
+-
+ MINIOBJS="$MINIDLNOBJ"
+ 
+ AS_CASE(["$THREAD_MODEL"],

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #13402: [PATCH] fix --with-gmp (broken by r57490)Closednobu (Nobuyoshi Nakada)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0