mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +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')
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user