From: usa@... Date: 2017-04-30T13:35:37+00:00 Subject: [ruby-core:80938] [Ruby trunk Bug#13175] Building --with-jemalloc on FreeBSD fails Issue #13175 has been updated by usa (Usaku NAKAMURA). Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: REQUIRED, 2.3: DONE, 2.4: REQUIRED ruby_2_3 r58515 merged revision(s) 57490. ---------------------------------------- Bug #13175: Building --with-jemalloc on FreeBSD fails https://bugs.ruby-lang.org/issues/13175#change-64596 * Author: spil (Bernard Spil) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: 2.3.3 * Backport: 2.2: REQUIRED, 2.3: DONE, 2.4: REQUIRED ---------------------------------------- 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 ```diff +@@ -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: