[LLVMdev] install and the strip command

Ed Maste emaste at freebsd.org
Thu Feb 27 05:53:20 PST 2014


On 27 February 2014 00:05, Simon Atanasyan <simon at atanasyan.com> wrote:
>
> Install tool invokes strip. GNU install allows to configure which
> strip to use (--strip-program). In general (for example on FreeBSD) it
> is not possible and install always runs just 'strip'. In case of
> cross-compilation that leads to the error.

Actually it is possible on FreeBSD -- from install(1):

ENVIRONMENT
     The install utility checks for the presence of the STRIPBIN environment
     variable and if present, uses the assigned value as the program to run if
     and when the -s option has been specified.

I'm not aware of other BSDs having this though, and supporting a
collection of command options and environment settings on various
platforms seems like it would be rather awkward.

However, FreeBSD will likely soon migrate to strip, nm, size and such
from the elftoolchain project, and those tools are natively cross-arch
so strip should just work for this case.



More information about the llvm-dev mailing list