[glib: 2/5] build: Link against libsocket on QNX




commit 57768b4704653512b154d480d0aa0247dfce91ca
Author: s1341 <github shmarya net>
Date:   Wed Mar 25 18:35:44 2015 +0200

    build: Link against libsocket on QNX
    
    QNX implements `res_query()` in libsocket, not libresolv or libbind.

 gio/meson.build | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gio/meson.build b/gio/meson.build
index e0a190cd6..8e039b68c 100644
--- a/gio/meson.build
+++ b/gio/meson.build
@@ -50,6 +50,9 @@ if host_system != 'windows'
     elif cc.links(res_query_test, args : '-lbind', name : 'res_query() in -lbind')
       network_libs += [ cc.find_library('bind') ]
       network_args += [ '-lbind' ]
+    elif cc.links(res_query_test, args : '-lsocket', name : 'res_query() in -lsocket')
+      network_libs += [ cc.find_library('socket') ]
+      network_args += [ '-lsocket' ]
     else
       error('Could not find res_query()')
     endif


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