From 4ab88650a2a57b07bd4ecc2fa5b0ca1f9d5f256d Mon Sep 17 00:00:00 2001 From: Mo Zhou Date: Mon, 21 Feb 2022 10:14:52 +0000 Subject: [PATCH] Fix symbol mangling for libjulia-openblas64 Forwarded: not-needed Last-Update: 2020-08-01 when building libjulia-openblas64, we place the lapack shared objects under lapack64-netlib/ directory. But if exports/gensymbol cannot detect the existence of the lapack-netlib directory, it will skip the lapack symbol which results in incomplete symbol mangling (SYMBOLSUFFIX=64_) through objcopy. Last-Update: 2020-08-01 Gbp-Pq: Name gensymbols-fix-detect-netlib.patch --- exports/gensymbol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exports/gensymbol b/exports/gensymbol index a9d9d78..8b0b49a 100644 --- a/exports/gensymbol +++ b/exports/gensymbol @@ -3533,6 +3533,7 @@ zpotri, use File::Spec; use File::Basename; my $dirname = File::Spec->catfile(dirname(dirname(File::Spec->rel2abs(__FILE__))), "lapack-netlib"); +my $dirname2 = File::Spec->catfile(dirname(dirname(File::Spec->rel2abs(__FILE__))), "lapack64-netlib"); if ($ARGV[12] == 1) { @blasobjs = (@blasobjs, @bfblasobjs); @@ -3602,7 +3603,7 @@ if ($ARGV[8] == 1) { } elsif ($ARGV[5] == 1) { #NO_LAPACK=1 @underscore_objs = (@blasobjs, @misc_underscore_objs); -} elsif (-d $dirname) { +} elsif (-d $dirname || -d $dirname2) { if ($ARGV[7] == 0) { # NEED2UNDERSCORES=0 # Don't need 2 underscores -- 2.30.2