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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux