diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-06-03 10:00:35 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-06-03 10:00:52 +0100 |
commit | 7595ca654a570b6fcf51586d40811c5a51c07e0d (patch) | |
tree | c2299220e41a70470b458a2bee4eb0dc72222971 /pkgs/development/mobile/xpwn/default.nix | |
parent | c5516d1d0045d0bc777dc01aa314fbe163eb2680 (diff) | |
download | nixlib-7595ca654a570b6fcf51586d40811c5a51c07e0d.tar nixlib-7595ca654a570b6fcf51586d40811c5a51c07e0d.tar.gz nixlib-7595ca654a570b6fcf51586d40811c5a51c07e0d.tar.bz2 nixlib-7595ca654a570b6fcf51586d40811c5a51c07e0d.tar.lz nixlib-7595ca654a570b6fcf51586d40811c5a51c07e0d.tar.xz nixlib-7595ca654a570b6fcf51586d40811c5a51c07e0d.tar.zst nixlib-7595ca654a570b6fcf51586d40811c5a51c07e0d.zip |
xpwn: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: ../ipsw-patch/libxpwn.a(libxpwn.c.o):(.bss+0x4): multiple definition of `endianness'; CMakeFiles/xpwn-bin.dir/src/xpwn.cpp.o:(.bss+0x0): first defined here
Diffstat (limited to 'pkgs/development/mobile/xpwn/default.nix')
-rw-r--r-- | pkgs/development/mobile/xpwn/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/mobile/xpwn/default.nix b/pkgs/development/mobile/xpwn/default.nix index 70f8cf3d95ef..e23ed132ce44 100644 --- a/pkgs/development/mobile/xpwn/default.nix +++ b/pkgs/development/mobile/xpwn/default.nix @@ -11,6 +11,11 @@ stdenv.mkDerivation rec { sha256 = "1qw9vbk463fpnvvvfgzxmn9add2p30k832s09mlycr7z1hrh3wyf"; }; + # Workaround build failure on -fno-common toolchains: + # ld: ../ipsw-patch/libxpwn.a(libxpwn.c.o):(.bss+0x4): multiple definition of + # `endianness'; CMakeFiles/xpwn-bin.dir/src/xpwn.cpp.o:(.bss+0x0): first defined here + NIX_CFLAGS_COMPILE = "-fcommon"; + preConfigure = '' rm BUILD # otherwise `mkdir build` fails on case insensitive file systems sed -r -i \ |