reintroduce BUILD_LDFLAGS for the cross-compile case

This allows providing separate LDFLAGS for build and host environments, which
are not necessary the same for cross-compile case. In particular, it allows
building host programs statically to not depend on presence of libraries at
run-time (e.g. MinGW DLLs on Windows) while continue to use default dynamic
linking at build time.

Also fix obsolete comments in confgure.ac - we do use different environment
for build and host now.
This commit is contained in:
Andrey Borzenkov 2014-01-18 19:50:54 +04:00
parent ae80f31270
commit dcecae1a49
5 changed files with 24 additions and 13 deletions

View file

@ -1,3 +1,10 @@
2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
* configure.ac: Add support for BUILD_LDFLAGS.
* Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
* grub-core/Makefile.am: ... and here.
* INSTALL: Mention BUILD_LDFLAGS.
2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mount.c: Extend GCC warning workaround to grub-mount.