Skip to content

Commit 019cfdc

Browse files
committed
Disable link-time optimizations for now because it breaks Ubuntu 15
builds. :-(
1 parent 9237561 commit 019cfdc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

SConstruct

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,18 @@ def set_debug_options():
166166

167167

168168
def set_release_options():
169+
# Enabling link-time optimizations breaks the build on Ubuntu 15, so for
170+
# now we avoid enabling them. What a chore it is to get stuff to build on
171+
# multiple platforms. :-(
172+
169173
env.AppendUnique(CCFLAGS=['-O2', '-DNDEBUG', '-Wno-unused',
170-
'-Wno-unused-parameter', '-flto',
171-
'-fvisibility=hidden'])
174+
'-Wno-unused-parameter', '-fvisibility=hidden'])
172175

173176
# Unfortunately this is needed to prevent spurious build errors on Ubuntu
174177
# 14. :-(
175178
env.AppendUnique(CPPFLAGS=['-U_FORTIFY_SOURCE'])
176179

177-
env.AppendUnique(LINKFLAGS=['-flto', '-rdynamic'])
180+
env.AppendUnique(LINKFLAGS=['-rdynamic'])
178181

179182

180183
# Append 'mode' specific environment variables.

0 commit comments

Comments
 (0)