File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -166,15 +166,18 @@ def set_debug_options():
166166
167167
168168def 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.
You can’t perform that action at this time.
0 commit comments