Package: libmath-gsl-perl
Version: 0.36-1
Severity: important
Tags: sid + patch
Justification: FTBFS
User: [email protected]
Usertags: mips-patch
Hello,
Package libmath-gsl-perl FTBFS on mips and mipsel
with following error:
/usr/bin/ld: xs/BLAS_wrap.1.16.o: relocation R_MIPS_HI16 against
`__gnu_local_gp' can not be used when making a shared object; recompile with
-fPIC
build logs:
https://buildd.debian.org/status/fetch.php?pkg=libmath-gsl-perl&arch=mips&ver=0.36-1&stamp=1461372647
https://buildd.debian.org/status/fetch.php?pkg=libmath-gsl-perl&arch=mipsel&ver=0.36-1&stamp=1459383304
I have created and attached a patch resolving this issue.
Patch is tested on mips, mipsel, mips64el and i386.
With this patch package was build successfully.
Please include this patch.
Thank you!
Regards,
Jurica
--- libmath-gsl-perl-0.36.orig/Build.PL
+++ libmath-gsl-perl-0.36/Build.PL
@@ -72,6 +72,9 @@ if ( GSLBuilder::is_cygwin() && $Config
if ($Config{archname} =~ /x86_64|amd64/ ) {
$ldflags .= ' -fPIC -fno-omit-frame-pointer ';
$ccflags .= ' -fPIC -fno-omit-frame-pointer ';
+} elsif ($Config{archname} =~ /mips/ ) {
+ $ldflags .= ' -fPIC ';
+ $ccflags .= ' -fPIC ';
}
my @Subsystems = grep { ! /^Test$/ } GSLBuilder::subsystems();