Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 607468

Summary: dev-lang/crystal-0.20.5: does not respect CC/CXX
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Lixiao Chen <longlene>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint, slyfox
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 243502    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-01-28 11:36:44 UTC
From early start of build log:

g++ -c -O2 -pipe -march=native  -o src/llvm/ext/llvm_ext.o src/llvm/ext/llvm_ext.cc `/usr/bin/llvm-config --cxxflags`
cc -O2 -pipe -march=native -fPIC    -c -o src/ext/sigfault.o src/ext/sigfault.c
ar -rcs src/ext/libcrystal.a src/ext/sigfault.o

This really should be $(tc-getCXX)/$(tc-getCC)/$(tc-getAR)
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-01-28 11:38:30 UTC
As a side note, threads=4 seems a wrong idea to. I'd suggest, from multiprocessing:

  $(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)"
Comment 2 Sergei Trofimovich gentoo-dev 2017-01-28 12:49:51 UTC
Pushed as:
    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef80935bdf6325a68ed25e5a94ae602227402cd2

Proposed AR override upstream as:
    https://github.com/crystal-lang/crystal/pull/3950

Thanks for the report!