]> 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:19:33 +0000 (07:19 +0200)
commit6288aa440c1ba111eaf52cf79659a25329205022
tree38356da505a356a03678faba88e2ab9482e4fb10
parent27abf142f640cf175e7690529660ebeb9a3875a9
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)
Configurations/unix-Makefile.tmpl
NOTES-NONSTOP.md