git.iko.soy/typeable/nixpkgs
on master help sign in
pjsip: Fix compilation on aarch64
commit53506d9c151884df050e3ccc125c51d2a9f53e4e authorDaniel Schaefer <git@danielschaefer.me> dateSat 6 Jul 2019, 05:01 (7 years ago) parentd4c661f
2 files changed+15
pkgs/applications/networking/pjsip/default.nix+2 pkgs/applications/networking/pjsip/fix-aarch64.patch+13
pkgs/applications/networking/pjsip/default.nix+2
@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
99 sha256 = "0dm6l8fypkimmzvld35zyykbg957cm5zb4ny3lchgv68amwfz1fi";
1010 };
1111
12+ patches = [ ./fix-aarch64.patch ];
13+
1214 buildInputs = [ openssl libsamplerate alsaLib ];
1315
1416 preConfigure = ''
pkgs/applications/networking/pjsip/fix-aarch64.patchnew file+13
@@ -0,0 +1,13 @@
1+--- a/aconfigure
2++++ b/aconfigure
3+@@ -8945,6 +8945,10 @@
4+ ac_webrtc_instset=neon
5+ ac_webrtc_cflags="-DWEBRTC_ARCH_ARMV7 -mfloat-abi=hard -mfpu=neon"
6+ ;;
7++ arm64*|aarch64*)
8++ ac_webrtc_instset=neon
9++ ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64"
10++ ;;
11+ *)
12+ ac_webrtc_instset=sse2
13+ ;;