Issue #13175 has been updated by Yui NARUSE.
Status changed from Open to Rejected
You needn't --with-jemalloc; don't specify --with-jemalloc on FreeBSD.
----------------------------------------
Bug #13175: Building --with-jemalloc on FreeBSD fails
https://bugs.ruby-lang.org/issues/13175#change-62801
* Author: Bernard Spil
* Status: Rejected
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: 2.3.3
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
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"],
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>