Skip to content

Commit

Permalink
fPIC compile flag (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner-andrulis authored Jan 21, 2025
1 parent 9a70fc8 commit 704c4b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ if str(Platform()) == 'darwin':
env.Append(CPPDEFINES = ['BOOST_LOG_DYN_LINK']) # BOOST_ALL_DYN_LINK

if GetOption('debug'):
env.Append(CCFLAGS = ['-g', '-O0'])
env.Append(CCFLAGS = ["-fPIC", '-g', '-O0'])
else:
env.Append(CCFLAGS = ['-g', '-O3', '-flto'])
env.Append(CCFLAGS = ["-fPIC", '-g', '-O3', '-flto'])

env.Append(CCFLAGS = ['-Werror', '-Wall', '-Wextra', '-std=c++17', '-pthread'])

Expand Down

0 comments on commit 704c4b9

Please sign in to comment.