mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 10:16:17 +01:00
build: Link against libsocket on QNX
QNX implements `res_query()` in libsocket, not libresolv or libbind.
This commit is contained in:
parent
4e3b646b4f
commit
57768b4704
@ -50,6 +50,9 @@ if host_system != 'windows'
|
|||||||
elif cc.links(res_query_test, args : '-lbind', name : 'res_query() in -lbind')
|
elif cc.links(res_query_test, args : '-lbind', name : 'res_query() in -lbind')
|
||||||
network_libs += [ cc.find_library('bind') ]
|
network_libs += [ cc.find_library('bind') ]
|
||||||
network_args += [ '-lbind' ]
|
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
|
else
|
||||||
error('Could not find res_query()')
|
error('Could not find res_query()')
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user