mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
Pass -nostdlib -nostartfiles together with -r [BZ #31753]
Since -r in GCC 6/7/8 doesn't imply -nostdlib -nostartfiles, update the link-static-libc.out rule to also pass -nostdlib -nostartfiles. This fixes BZ #31753. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
parent
8d7b6b4cb2
commit
2be3352f0b
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -581,7 +581,8 @@ $(objpfx)lint-makefiles.out: scripts/lint-makefiles.sh
|
|||
# definitions of any symbols.
|
||||
tests-special += $(objpfx)link-static-libc.out
|
||||
$(objpfx)link-static-libc.out:
|
||||
$(LINK.o) $(whole-archive) -r $(objpfx)libc.a -o /dev/null > $@ 2>&1; \
|
||||
$(LINK.o) $(whole-archive) -nostdlib -nostartfiles -r \
|
||||
$(objpfx)libc.a -o /dev/null > $@ 2>&1; \
|
||||
$(evaluate-test)
|
||||
|
||||
# Print test summary for tests in $1 .sum file;
|
||||
|
|
Loading…
Add table
Reference in a new issue