Skip to content

Commit

Permalink
Modify scons scripts to be able to compile on macOS with brew packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vincent committed Aug 8, 2017
1 parent ba8bcc9 commit 85984c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ class FreelanEnvironment(Environment):
self.Append(CXXFLAGS=['-arch', 'x86_64'])
self.Append(CXXFLAGS=['-DBOOST_ASIO_DISABLE_KQUEUE'])
self.Append(CXXFLAGS=['--stdlib=libc++'])
self.Append(CXXFLAGS=['-I/usr/local/opt/openssl/include'])
self.Append(CFLAGS=['-I/usr/local/opt/openssl/include'])
self.Append(LDFLAGS=['--stdlib=libc++'])
self.Append(LDFLAGS=['-L/usr/local/opt/openssl/lib'])
self.Append(LIBPATH=['/usr/local/opt/openssl/lib'])

if self.mode == 'debug':
self.Append(CXXFLAGS=['-g'])
Expand Down
10 changes: 9 additions & 1 deletion apps/freelan/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ libraries = [
'kfather',
'iconvplus',
'boost_system',
'boost_thread',
'boost_filesystem',
'boost_date_time',
'boost_program_options',
Expand All @@ -23,6 +22,15 @@ libraries = [
'crypto',
]

if sys.platform.startswith('darwin'):
libraries.extend([
'boost_thread-mt',
])
else:
libraries.extend([
'boost_thread',
])

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

0 comments on commit 85984c2

Please sign in to comment.