mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-05 22:34:56 +01:00
Change to ytk wscript, to work slightly better with MSVC
Replace obj.ldflags = '-l... with obj.lib = ['... to work for both MinGW and MSVC. Also, obj.linkflags = ['-Wl,--export-all-symbols'] only happens for MinGW. (Previously, both lines were ignored by MSVC.
This commit is contained in:
parent
637d99167a
commit
8ca2d12198
1 changed files with 3 additions and 2 deletions
|
|
@ -298,8 +298,9 @@ def build(bld):
|
|||
elif bld.env['build_target'] == 'mingw' or bld.env['build_target'] == 'msvc':
|
||||
obj.source = libytk_sources + libytk_win32_sources
|
||||
obj.defines += [ 'INSIDE_GTK_WIN32', 'DLL_EXPORT', 'PIC' ]
|
||||
obj.ldflags = '-limm32 -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32 -luuid'
|
||||
obj.linkflags = ['-Wl,--export-all-symbols']
|
||||
obj.lib = ['imm32', 'ole32', 'gdi32', 'comdlg32', 'winspool', 'comctl32', 'uuid']
|
||||
if bld.env['build_target'] == 'mingw':
|
||||
obj.linkflags = ['-Wl,--export-all-symbols']
|
||||
else:
|
||||
obj.source = libytk_sources + libytk_x11_sources
|
||||
obj.uselib += ' X11 XEXT'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue