diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-05-17 20:00:38 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-05-19 16:29:02 -0700 |
commit | 2be3352f0b1ebaa39596393fffe1062275186669 (patch) | |
tree | d381d835003d7b418a195d30d5a0e97401e0ee21 /Makefile | |
parent | 8d7b6b4cb27d4dec1dd5f7960298c1699275f962 (diff) | |
download | glibc-2be3352f0b1ebaa39596393fffe1062275186669.tar.gz glibc-2be3352f0b1ebaa39596393fffe1062275186669.tar.xz glibc-2be3352f0b1ebaa39596393fffe1062275186669.zip |
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile index adf4749124..c84f266ce7 100644 --- a/Makefile +++ b/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; |