Skip to content

Commit

Permalink
Disable position-independent executable for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
jacereda committed Nov 22, 2021
1 parent 458534a commit d4a8b94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ if ring0:
env['OS'] = 'win32'
env['ENV']['PATH'] = os.environ['PATH']
env.Append(CCFLAGS='-Ofast -fno-reorder-blocks -freorder-blocks-algorithm=simple')
if env['OS'] == 'darwin':
env.Append(LINKFLAGS='-Wl,-no_pie')
env.Append(LINKFLAGS='-no-pie')

if tarch == 'x64':
env.Append(CPPDEFINES=['X86_64'])
Expand Down

0 comments on commit d4a8b94

Please sign in to comment.