]> git.ipfire.org Git - thirdparty/openssl.git/commit
Build: Fix circular object deps with old GCC
authorOrgad Shaneh <orgads@gmail.com>
Thu, 12 Sep 2024 20:23:46 +0000 (23:23 +0300)
committerRichard Levitte <levitte@openssl.org>
Tue, 17 Sep 2024 05:24:58 +0000 (07:24 +0200)
commitf62ed4e10057fba50a59b34e78571d4485b03887
tree7275d5e699edbe9f54a13d9f8f0b3732d0772336
parent810682d10d61446a284ceed210d46b3393aa80fc
Build: Fix circular object deps with old GCC

When both -o and -MT are used, GCC 4.1 prints the object file twice in
the dependency file. e.g.:

foo.o foo.o: foo.c

If the file name is long, then the second occurrence moves to the next
line. e.g.:

ssl/statem/libssl-shlib-statem_dtls.o \
  ssl/statem/libssl-shlib-statem_dtls.o: ../ssl/statem/statem_dtls.c \

add-depends script scans one line at a time, so when the first line is
processed, the object file becomes a dependency itself.

Fix by removing -MT altogether.

This also fixes makedepend for nonstop platform.

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25455)

(cherry picked from commit 6288aa440c1ba111eaf52cf79659a25329205022)
Configurations/unix-Makefile.tmpl
NOTES-NONSTOP.md