From: Norbert Pocs Date: Thu, 8 Jan 2026 15:11:10 +0000 (+0100) Subject: windows-makefile: Don't prefix libdir when it is absolute path X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d130c5f74873b3aad74f58bd7d0fdea0fb16397c;p=thirdparty%2Fopenssl.git windows-makefile: Don't prefix libdir when it is absolute path When --libdir was passed to configuration as an absolute path then the makefile MODULESDIR_dir became concat(prefix, libdir) creating an invalid path. Fixes: https://github.com/openssl/project/issues/1797 Signed-off-by: Norbert Pocs Reviewed-by: Saša Nedvědický Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/29579) --- diff --git a/Configurations/windows-makefile.tmpl b/Configurations/windows-makefile.tmpl index 408b571d66e..e9f985f8551 100644 --- a/Configurations/windows-makefile.tmpl +++ b/Configurations/windows-makefile.tmpl @@ -208,7 +208,7 @@ OPENSSLDIR_dir={- canonpath($openssldir_dir) -} LIBDIR={- our $libdir = $config{libdir} || "lib"; file_name_is_absolute($libdir) ? "" : $libdir -} MODULESDIR_dev={- use File::Spec::Functions qw(:DEFAULT splitpath catpath); - our $modulesprefix = catdir($prefix,$libdir); + our $modulesprefix = file_name_is_absolute($libdir) ? $libdir : catdir($prefix,$libdir); our ($modulesprefix_dev, $modulesprefix_dir, $modulesprefix_file) = splitpath($modulesprefix, 1);