Browse code

Enable native build on QNX/x86 (cherry picked from commit d33ed7b36762bf26694bdfa18e0d811e26c996f8)

Mans Rullgard authored on 2011/01/30 10:05:39
Showing 1 changed files
... ...
@@ -2110,7 +2110,7 @@ case "$arch" in
2110 2110
         arch="sparc"
2111 2111
         subarch="sparc64"
2112 2112
     ;;
2113
-    i[3-6]86|i86pc|BePC|x86_64|amd64)
2113
+    i[3-6]86|i86pc|BePC|x86pc|x86_64|amd64)
2114 2114
         arch="x86"
2115 2115
     ;;
2116 2116
 esac
... ...
@@ -2447,6 +2447,10 @@ case $target_os in
2447 2447
         ;;
2448 2448
     gnu)
2449 2449
         ;;
2450
+    qnx)
2451
+        add_cppflags -D_QNX_SOURCE
2452
+        network_extralibs="-lsocket"
2453
+        ;;
2450 2454
     none)
2451 2455
         ;;
2452 2456
     *)