[pulseaudio-discuss] [PATCH webrtc-audio-processing] build: support other GNU systems

Pino Toscano toscano.pino at tiscali.it
Sat Jul 22 22:09:44 UTC 2017


Add a case for generic GNU-based systems, enabling POSIX flags, and
pthreads too.
---
 configure.ac | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/configure.ac b/configure.ac
index e78bf27..bc222c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,6 +77,13 @@ AS_CASE(["${host}"],
          PLATFORM_CFLAGS="-DWEBRTC_WIN -D_WIN32 -U__STRICT_ANSI__"
          HAVE_WIN=1
         ],
+    [*-gnu*],
+        [
+         OS_CFLAGS=""  # no extra CFLAGS on other GNU systems
+         PLATFORM_CFLAGS="-DWEBRTC_POSIX"
+         OS_LDFLAGS="-lrt -lpthread"
+         HAVE_POSIX=1
+        ],
     [AC_MSG_ERROR([Unsupported host $host])]
 )
 AC_SUBST(PLATFORM_CFLAGS)
-- 
2.13.2



More information about the pulseaudio-discuss mailing list