Fix install-strip for cross-compilation
authorHannes Domani <ssbssa@yahoo.de>
Mon, 30 Dec 2019 16:01:02 +0000 (17:01 +0100)
committerHannes Domani <ssbssa@yahoo.de>
Wed, 1 Jan 2020 20:51:33 +0000 (21:51 +0100)
commit48189beca8aeb629deaf2d92268d6d234ce19aeb
tree7c89ebce40ed87327df725f3176253a840b879ac
parentead1063b4bff6895f822ec0be6e9ec390ca103e3
Fix install-strip for cross-compilation

The variable INSTALL_PROGRAM_ENV sets up STRIPPROG for the cross-compiler.

If this is not done, the host 'strip' is used, and fails:

/bin/sh /c/src/repos/binutils-gdb.git/install-sh -c -s gdb.exe \
  /gdb/gdb64-git/bin/$transformed_name.exe
strip.exe:C:/gdb/gdb64-git/bin/_inst.33599_: file format not recognized

With this change, it's fine:

STRIPPROG='x86_64-w64-mingw32-strip' \
  /bin/sh /c/src/repos/binutils-gdb.git/install-sh -c -s gdb.exe \
  /gdb/gdb64-git/bin/$transformed_name.exe

gdb/ChangeLog:

2020-01-01  Hannes Domani  <ssbssa@yahoo.de>

* Makefile.in: Use INSTALL_PROGRAM_ENV.

gdb/gdbserver/ChangeLog:

2020-01-01  Hannes Domani  <ssbssa@yahoo.de>

* Makefile.in: Use INSTALL_PROGRAM_ENV.
gdb/ChangeLog
gdb/Makefile.in
gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in