Building the -current source tree with COPTS='-O1'
or anything lower than -O2 results in a linker error for several functions.

_cd sys/arch/amd64/compile/GENERIC.MP/_
_make obj COPTS='-O1'_
_make config COPTS='-O1'_
_make build COPTS='-O1'_

The problem seems to come from clang using slightly different inline semantics
from gcc. [1] This build error can be fixed with a small patch
declaring some inline
functions static.

[1] http://llvm.1065342.n5.nabble.com/Problem-with-inline-keyword-td47047.html

Sincerely,
Colton Lewis

Attachment: make.error
Description: Binary data

Attachment: static-inline.patch
Description: Binary data

Reply via email to