Idem for the emu-sock-creator

This commit is contained in:
Gustavo J. A. M. Carneiro
2012-01-23 11:53:28 +00:00
parent af8b4891d6
commit 251ddfc332
2 changed files with 6 additions and 4 deletions

View File

@@ -476,8 +476,8 @@ EmuNetDevice::CreateSocket (void)
//
// Execute the socket creation process image.
//
status = ::execlp ("emu-sock-creator",
"emu-sock-creator", // argv[0] (filename)
status = ::execlp (EMU_SOCK_CREATOR,
EMU_SOCK_CREATOR, // argv[0] (filename)
oss.str ().c_str (), // argv[1] (-p<path?
(char *)NULL);

View File

@@ -43,12 +43,14 @@ def build(bld):
'helper/emu-helper.h',
]
obj = bld.create_suid_program('emu-sock-creator')
obj.source = [
creator = bld.create_suid_program('emu-sock-creator')
creator.source = [
'model/emu-sock-creator.cc',
'model/emu-encode-decode.cc',
]
module.env.append_value("DEFINES", "EMU_SOCK_CREATOR=\"%s\"" % (creator.target,))
if bld.env['ENABLE_EXAMPLES']:
bld.add_subdirs('examples')