summary refs log tree commit diff
path: root/pkgs/applications/networking/pjsip
diff options
context:
space:
mode:
authorDaniel Schaefer <git@danielschaefer.me>2019-07-06 05:01:43 +0200
committerDaniel Schaefer <git@danielschaefer.me>2019-07-06 05:01:43 +0200
commit53506d9c151884df050e3ccc125c51d2a9f53e4e (patch)
tree1a15a80242bb416b5b56def09b5da347504e07c2 /pkgs/applications/networking/pjsip
parentd4c661fb27a1f591bb51896db046606e18dde687 (diff)
downloadnixpkgs-53506d9c151884df050e3ccc125c51d2a9f53e4e.tar
nixpkgs-53506d9c151884df050e3ccc125c51d2a9f53e4e.tar.gz
nixpkgs-53506d9c151884df050e3ccc125c51d2a9f53e4e.tar.bz2
nixpkgs-53506d9c151884df050e3ccc125c51d2a9f53e4e.tar.lz
nixpkgs-53506d9c151884df050e3ccc125c51d2a9f53e4e.tar.xz
nixpkgs-53506d9c151884df050e3ccc125c51d2a9f53e4e.tar.zst
nixpkgs-53506d9c151884df050e3ccc125c51d2a9f53e4e.zip
pjsip: Fix compilation on aarch64
Diffstat (limited to 'pkgs/applications/networking/pjsip')
-rw-r--r--pkgs/applications/networking/pjsip/default.nix2
-rw-r--r--pkgs/applications/networking/pjsip/fix-aarch64.patch13
2 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/applications/networking/pjsip/default.nix b/pkgs/applications/networking/pjsip/default.nix
index 93b8a44836c..8a66c039b5a 100644
--- a/pkgs/applications/networking/pjsip/default.nix
+++ b/pkgs/applications/networking/pjsip/default.nix
@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
     sha256 = "0dm6l8fypkimmzvld35zyykbg957cm5zb4ny3lchgv68amwfz1fi";
   };
 
+  patches = [ ./fix-aarch64.patch ];
+
   buildInputs = [ openssl libsamplerate alsaLib ];
 
   preConfigure = ''
diff --git a/pkgs/applications/networking/pjsip/fix-aarch64.patch b/pkgs/applications/networking/pjsip/fix-aarch64.patch
new file mode 100644
index 00000000000..f4aabf7a9bb
--- /dev/null
+++ b/pkgs/applications/networking/pjsip/fix-aarch64.patch
@@ -0,0 +1,13 @@
+--- a/aconfigure
++++ b/aconfigure
+@@ -8945,6 +8945,10 @@
+                                  ac_webrtc_instset=neon
+                                  ac_webrtc_cflags="-DWEBRTC_ARCH_ARMV7 -mfloat-abi=hard -mfpu=neon"
+                                  ;;
++                             arm64*|aarch64*)
++                                 ac_webrtc_instset=neon
++                                 ac_webrtc_cflags="-DWEBRTC_ARCH_ARM64"
++                                 ;;
+                              *)
+                                  ac_webrtc_instset=sse2
+                                  ;;