aboutsummaryrefslogtreecommitdiff
path: root/reproduce/software/make/high-level.mk
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2019-08-08 14:17:25 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2019-08-08 14:17:25 +0100
commit70819a18bf9c452d229e587e03b26bfa44f10686 (patch)
tree68348aa93b94e59925566704e918e627cac17109 /reproduce/software/make/high-level.mk
parentfd483c8df4576758a3bff3bccf8067c40032b99a (diff)
Static PatchELF only built when static C library exists
Until now, when building PatchELF, we would always require that it be done statically. However, some systems don't have a static C library available for linking. This cause a crash in the static building of PatchELF. But a static PatchELF is necessary for correcting RPATH in GCC's outputs. With this commit, in the configure script we check if a static C library is linkable for the compiler. If it isn't then `host_cc' will be set to 1 and GCC won't be built. We also pass the result of this test to `basic.mk' (through `good_static_lib'), so if a static C library isn't available, it builds a dynamically linked PatchELF. This bug was reported by Elham Saremi.
Diffstat (limited to 'reproduce/software/make/high-level.mk')
0 files changed, 0 insertions, 0 deletions