OSDN Git Service

Enable native build on QNX/x86
authorMans Rullgard <mans@mansr.com>
Sun, 30 Jan 2011 01:05:39 +0000 (01:05 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 31 Jan 2011 17:25:40 +0000 (18:25 +0100)
(cherry picked from commit d33ed7b36762bf26694bdfa18e0d811e26c996f8)

configure

index a4d1711..e68d568 100755 (executable)
--- a/configure
+++ b/configure
@@ -2110,7 +2110,7 @@ case "$arch" in
         arch="sparc"
         subarch="sparc64"
     ;;
-    i[3-6]86|i86pc|BePC|x86_64|amd64)
+    i[3-6]86|i86pc|BePC|x86pc|x86_64|amd64)
         arch="x86"
     ;;
 esac
@@ -2447,6 +2447,10 @@ case $target_os in
         ;;
     gnu)
         ;;
+    qnx)
+        add_cppflags -D_QNX_SOURCE
+        network_extralibs="-lsocket"
+        ;;
     none)
         ;;
     *)