Fix Windows console apps to actually have a console.
authorCarl Hetherington <cth@carlh.net>
Fri, 2 Oct 2020 11:31:35 +0000 (13:31 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 13 Oct 2020 16:51:11 +0000 (18:51 +0200)
src/tools/wscript

index a185974c6c731946dbe3a054f0ffb219578e6513..49b339218044fab9baa73081ee4c84db6a249328 100644 (file)
@@ -61,7 +61,7 @@ def build(bld):
         if bld.env.TARGET_WINDOWS and t == 'dcpomatic_disk_writer':
             obj.source += ' ../../platform/windows/%s.rc' % t
             # Prevent a console window opening when we start dcpomatic2_disk_writer
-            bld.env.LINKFLAGS.append('-Wl,-subsystem,windows')
+            obj.env.append_value('LINKFLAGS', '-Wl,-subsystem,windows')
         obj.target = t.replace('dcpomatic', 'dcpomatic2').replace('swaroop_', '')
         if t == 'server_test':
             obj.install_path = None