]> git.tuebingen.mpg.de Git - paraslash.git/commit
build: Do not strip installed executables by default.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 18 Jul 2016 16:49:31 +0000 (18:49 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 8 Jan 2017 12:58:54 +0000 (13:58 +0100)
commit9f3fe55418589acab8dfb809e787f15a46f7d174
tree9b6f535a02bf36bdcb2cda20b6d7e674fb400e33
parent4f97f4f59172c8d295a22f10204cdef507e3402a
build: Do not strip installed executables by default.

The "install" target currently strips all executables while installing
them, which is not recommended according to GNU conventions. Instead,
there should exist the "install-strip" target for this purpose.

Moreover, the current install target assumes the GNU variant of
the install utility because we call install with --strip-program,
an option which is not available on *BSD.

This patch addresses both issues. It removes the autoconf check and
lets the user directly define the path to the install executable by
setting INSTALL, INSTALL_PROGRAM, INSTALL_DATA, as recommended by the
GNU project. These variables are used in the commands to be executed
when the install target is made. They have reasonable and portable
defaults, so not setting them at all should be fine on all supported
platforms, addressing the issue with --strip-program.

The new phony target install-strip runs install -s but does not try
to be smart about how to tell the install implementation which strip
program to use.

The cross compiling example can be simplified to reflect the fact
that CROSS_COMPILE is no longer used in the Makefile.
INSTALL
Makefile.in
Makefile.real
configure.ac