aboutsummaryrefslogtreecommitdiffstats
path: root/Configurations
diff options
context:
space:
mode:
authorsunnyqeen <[email protected]>2024-02-07 11:58:44 +0100
committerNeil Horman <[email protected]>2026-06-21 17:55:57 +0200
commit66c36af0777392c74cfc1a4a64938f19d6b657e5 (patch)
tree0eb58466c8cd40890e9d724edfef55d8deda8264 /Configurations
parents390x: Don't ignore errors from s390x_mod_exp_hw() and s390x_crt() (diff)
downloadopenssl-66c36af0777392c74cfc1a4a64938f19d6b657e5.tar.gz
openssl-66c36af0777392c74cfc1a4a64938f19d6b657e5.zip
Fix unix Makefile template to avoid command line too long error on windows
On cygwin/msys systems that run on Windows, command line length is limited. using response file instead of putting objects on the command line will avoid this error CLA: trivial Reviewed-by: Richard Levitte <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> Reviewed-by: Tim Hudson <[email protected]> Reviewed-by: Neil Horman <[email protected]> MergeDate: Sun Jun 21 15:56:08 2026 (Merged from https://github.com/openssl/openssl/pull/23077)
Diffstat (limited to 'Configurations')
-rw-r--r--Configurations/unix-Makefile.tmpl17
1 files changed, 16 insertions, 1 deletions
diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index de345a5e8a6..f27517e565f 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -11,6 +11,7 @@
our $makedepcmd = platform->makedepcmd();
sub windowsdll { $config{target} =~ /^(?:Cygwin|mingw)/ }
+ sub run_on_windows { $^O =~ /^(?:cygwin|msys|MSWin32)/ }
# Shared AIX support is special. We put libcrypto[64].so.ver into
# libcrypto.a and use libcrypto_a.a as static one, unless using
@@ -1895,13 +1896,27 @@ $import: $full
EOF
}
}
- $recipe .= <<"EOF";
+ if (!run_on_windows()) {
+ $recipe .= <<"EOF";
$full: $fulldeps
\$(CC) \$(LIB_CFLAGS) $linkflags\$(LIB_LDFLAGS)$shared_soname$shared_imp \\
-o $full$shared_def \\
$fullobjs \\
$linklibs \$(LIB_EX_LIBS)
EOF
+ } else {
+ $recipe .= <<"EOF";
+$full: $fulldeps
+ \$(file >\[email protected], \\
+ $fullobjs \\
+ )
+ \$(CC) \$(LIB_CFLAGS) $linkflags\$(LIB_LDFLAGS)$shared_soname$shared_imp \\
+ -o $full$shared_def \\
+ $linklibs \$(LIB_EX_LIBS)
+EOF
+ }
if (windowsdll()) {
$recipe .= <<"EOF";
rm -f apps/$full