Re: Bug#1121530: libreoffice: Please build with -fPIE on sparc64 to fix FTBFS
Hello,
On Fri, 2025-11-28 at 09:46 +0100, John Paul Adrian Glaubitz wrote:
> On Fri, 2025-11-28 at 09:34 +0100, Rene Engelhard wrote:
> > Upstream patches related to/for lp-solve I mean:
> >
> > <https://git.libreoffice.org/core/+/refs/heads/master/external/lpsolve/>
>
> Yes, I'm aware of this.
>
> > In any way you need to teach ccc -fPIE. But then I'd wonder why lp-solve in
> > Debian built... That one has "just" -fPIC.
>
> Please see my other mail. I said, I'm going to replace "-fpic" with "-fPIC".
>
> -fpic/-fPIC is for libraries, -fpie/-fPIE for executables.
>
> > See salsa.debian.org/math-team/lp-solve
>
> Which confirms my theory ;-).
The attached patch replaces "-fpic" with "-fPIC" in the lp-solve build script which
seems to be enough to fix this particular build issue on sparc64.
Thanks,
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
--- /home/glaubitz/loffice/libreoffice-26.2.0~alpha1/workdir/UnpackedTarball/lpsolve/lpsolve55/ccc.orig 2025-11-28 10:13:07.347841660 +0100
+++ /home/glaubitz/loffice/libreoffice-26.2.0~alpha1/workdir/UnpackedTarball/lpsolve/lpsolve55/ccc 2025-11-28 10:29:28.092478983 +0100
@@ -22,7 +22,7 @@
a=a
soprefix=lib
libs="-lm"
- pic=-fpic
+ pic=-fPIC
ldflags="-Wl,-Bsymbolic -Wl,-soname,liblpsolve55.$so"
fi
Reply to: