Skip to content

Commit

Permalink
[build] Fixes compilation of samples on *BSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vincent committed May 8, 2019
1 parent b95cfc1 commit 959e2e0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion samples/asiotap/proxy/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ libraries = [
'executeplus',
'boost_system',
'boost_iostreams',
'pthread'
]

if sys.platform.startswith('linux'):
libraries.append('pthread')
libraries.append('netlinkplus')

Import('env dirs name')
Expand Down
2 changes: 1 addition & 1 deletion samples/asiotap/routes/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ libraries = [
'executeplus',
'boost_system',
'boost_iostreams',
'pthread',
]

if sys.platform.startswith('linux'):
libraries.extend([
'netlinkplus',
'pthread',
])

Import('env dirs name')
Expand Down
2 changes: 1 addition & 1 deletion samples/asiotap/tap/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ libraries = [
'executeplus',
'boost_system',
'boost_iostreams',
'pthread'
]

if sys.platform.startswith('linux'):
libraries.append('netlinkplus')
libraries.append('pthread')

Import('env dirs name')

Expand Down
2 changes: 1 addition & 1 deletion samples/asiotap/tun/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ libraries = [
'executeplus',
'boost_system',
'boost_iostreams',
'pthread'
]

if sys.platform.startswith('linux'):
libraries.append('netlinkplus')
libraries.append('pthread')

Import('env dirs name')

Expand Down
5 changes: 1 addition & 4 deletions samples/fscp/client/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ libraries = [
'cryptoplus',
'boost_system',
'crypto',
'pthread'
]

if env.upnp == 'yes':
Expand All @@ -27,10 +28,6 @@ else:
'boost_thread',
])
env = conf.Finish()
if sys.platform.startswith('linux'):
libraries.extend([
'pthread',
])

env = env.Clone()
env.Append(LIBS=libraries)
Expand Down
6 changes: 1 addition & 5 deletions samples/fscp/schat/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ libraries = [
'cryptoplus',
'boost_system',
'crypto',
'pthread'
]

if env.upnp == 'yes':
Expand All @@ -28,11 +29,6 @@ else:
])
env = conf.Finish()

if sys.platform.startswith('linux'):
libraries.extend([
'pthread',
])

env = env.Clone()
env.Append(LIBS=libraries)
samples = env.Program(target=os.path.join(str(dirs['bin']), name), source=env.RGlob('.', ['*.cpp']))
Expand Down

0 comments on commit 959e2e0

Please sign in to comment.