summaryrefslogtreecommitdiff
path: root/source4/lib/socket_wrapper/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/socket_wrapper/SConscript')
-rw-r--r--source4/lib/socket_wrapper/SConscript11
1 files changed, 9 insertions, 2 deletions
diff --git a/source4/lib/socket_wrapper/SConscript b/source4/lib/socket_wrapper/SConscript
index ac9e0466b2..1c0253a0d4 100644
--- a/source4/lib/socket_wrapper/SConscript
+++ b/source4/lib/socket_wrapper/SConscript
@@ -1,7 +1,14 @@
Import('hostenv')
-hostenv.StaticLibrary('socket_wrapper',['socket_wrapper.c'])
opts = Options(None, ARGUMENTS)
opts.AddOptions(
- BoolOption('socket-wrapper','enable socket wrapper',0)
+ BoolOption('socket_wrapper','enable socket wrapper',0)
)
+
+opts.Update(hostenv)
+
+if hostenv['socket_wrapper']:
+ hostenv.Append(CPPDEFINES = {'HAVE_SOCKET_WRAPPER': 1})
+ socket_wrapper = hostenv.StaticLibrary('socket_wrapper',['socket_wrapper.c'])
+else:
+ socket_wrapper = []