when building libjulia-openblas64, we place the lapack shared
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Mon, 16 Aug 2021 17:45:15 +0000 (18:45 +0100)
committerSébastien Villemot <sebastien@debian.org>
Mon, 16 Aug 2021 17:45:15 +0000 (18:45 +0100)
Forwarded: no need. Debian specific.

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.

Gbp-Pq: Name gensymbols-fix-detect-netlib.patch

exports/gensymbol

index a9d9d780060b6632c49aa1e261988a743d6c4411..8b0b49ab3bf468c843084dd1fa5cc31510e353b7 100644 (file)
@@ -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