pth: fix cross-compilation support

This commit is contained in:
Jörg Thalheim 2019-08-02 09:57:25 +01:00
parent 84d2202a46
commit d0887921b3
No known key found for this signature in database
GPG Key ID: B3F5D81B0C6967C4

View File

@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
preConfigure = stdenv.lib.optionalString stdenv.isAarch32 ''
configureFlagsArray=("CFLAGS=-DJB_SP=8 -DJB_PC=9")
'' + stdenv.lib.optionalString (stdenv.hostPlatform.libc == "glibc") ''
configureFlagsArray+=("ac_cv_check_sjlj=ssjlj")
'';
meta = with stdenv.lib; {
@ -17,6 +19,5 @@ stdenv.mkDerivation rec {
homepage = https://www.gnu.org/software/pth;
license = licenses.lgpl21Plus;
platforms = platforms.all;
broken = stdenv.hostPlatform != stdenv.buildPlatform && stdenv.hostPlatform.isAarch64;
};
}