summaryrefslogtreecommitdiff
path: root/pcr/pjproject/arm-build.patch
blob: 06dde3493e9873483a5bc03e5bbc0fc95e583c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
diff -ur pjproject-2.6.orig/aconfigure pjproject-2.6/aconfigure
--- pjproject-2.6.orig/aconfigure	2017-01-25 11:23:08.000000000 +0000
+++ pjproject-2.6/aconfigure	2017-05-03 21:41:34.657154786 +0000
@@ -8494,7 +8494,15 @@
 			ac_webrtc_cflags="-msse2"
 			;;
 		     *win32* | *w32* | *darwin* | *linux*)
-			ac_webrtc_instset=sse2
+                         case $target in
+                             armv7l*gnueabihf)
+                                 ac_webrtc_instset=neon
+                                 ac_webrtc_cflags="-DWEBRTC_ARCH_ARMV7 -mfloat-abi=hard -mfpu=neon"
+                                 ;;
+                             *)
+                                 ac_webrtc_instset=sse2
+                                 ;;
+                         esac
 			;;
 		     *)
 			;;
diff -ur pjproject-2.6.orig/aconfigure.ac pjproject-2.6/aconfigure.ac
--- pjproject-2.6.orig/aconfigure.ac	2017-01-25 11:23:08.000000000 +0000
+++ pjproject-2.6/aconfigure.ac	2017-05-03 21:42:41.686846516 +0000
@@ -1840,7 +1840,15 @@
 			ac_webrtc_cflags="-msse2"
 			;;
 		     *win32* | *w32* | *darwin* | *linux*)
-			ac_webrtc_instset=sse2
+                         case $target in
+                             armv7l*gnueabihf)
+                                 ac_webrtc_instset=neon
+                                 ac_webrtc_cflags="-DWEBRTC_ARCH_ARMV7 -mfloat-abi=hard -mfpu=neon"
+                                 ;;
+                             *)
+                                 ac_webrtc_instset=sse2
+                                 ;;
+                         esac
 			;;
 		     *)
 			;;
diff -ur pjproject-2.6.orig/third_party/build/os-auto.mak.in pjproject-2.6/third_party/build/os-auto.mak.in
--- pjproject-2.6.orig/third_party/build/os-auto.mak.in	2016-12-22 09:33:55.000000000 +0000
+++ pjproject-2.6/third_party/build/os-auto.mak.in	2017-05-03 21:25:48.151562278 +0000
@@ -104,8 +104,7 @@
 else # Generic fixed point
     WEBRTC_SRC = \
 	      modules/audio_processing/aecm/aecm_core_c.o                \
-	      modules/audio_processing/ns/nsx_core_c.o                   \
-	      common_audio/signal_processing/complex_fft.o
+	      modules/audio_processing/ns/nsx_core_c.o
 endif
 endif
 endif