How can I do a "make install-strip" of the tools

550 views
Skip to first unread message

Tommy Murphy

unread,
Nov 15, 2016, 6:43:56 AM11/15/16
to RISC-V SW Dev
I am building the tools as follows:

cd ~/Downloads
mkdir riscv
cd riscv
git clone --recursive https:/
/github.com/riscv/riscv-gnu-toolchain
cd riscv
-gnu-toolchain
cd riscv
-gcc
contrib
/download_prerequisites
cd
..
./configure --prefix=`pwd`/riscv64-unknown-elf-gcc --enable-multilib --disable-float
make

This builds and installs the tools but the executables are unstripped.
How can I tell the build process to do make install-strip rather than make install for each package?
Do I have to edit the configure script or make some other change?

Thanks a lot.


Stefan O'Rear

unread,
Nov 15, 2016, 12:50:37 PM11/15/16
to Tommy Murphy, RISC-V SW Dev
On Tue, Nov 15, 2016 at 3:43 AM, Tommy Murphy <tommy_...@hotmail.com> wrote:
> This builds and installs the tools but the executables are unstripped.
> How can I tell the build process to do make install-strip rather than make
> install for each package?
> Do I have to edit the configure script or make some other change?

I imagine you'll probably have to edit the configure script.

-s

Tommy Murphy

unread,
Nov 15, 2016, 1:04:08 PM11/15/16
to RISC-V SW Dev, tommy_...@hotmail.com
Thanks. I couldn't see where in the configure script this might be controlled so I tried editing the Makefile.in but at least one of the targets built didn't support make install-strip.
I'll have to investigate further but just wondered if anybody had done this before.
The unstrippped gcc/newlib tools are c. 500MB installed. 
Stripped is less than half that.
Reply all
Reply to author
Forward
0 new messages