]> 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:26:48 +0000 (07:26 +0200)
commit59d9b514b7e85573f25bd538d3867be5ed837bc7
treea821572cb6ce73872e67ff60491bb49326419b9b
parente88dfd5ee50f9d934edd966369339ee5573c67d4
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