mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-10 16:43:33 +02:00
Fix linking of libsuil
libsuil uses directly symbols of X11 when compiling with GTK2. The build will fail if compiled with -Wl,--as-needed: [6/6] cshlib: build/src/x11_in_gtk2.c.3.o -> build/libsuil_x11_in_gtk2.so src/x11_in_gtk2.c.3.o: In function `forward_key_event': lib-src/lv2/suil/build/../src/x11_in_gtk2.c:159: undefined reference to `XSendEvent' src/x11_in_gtk2.c.3.o: In function `x_window_is_valid': lv2/suil/build/../src/x11_in_gtk2.c:71: undefined reference to `XQueryTree' src/x11_in_gtk2.c.3.o: In function `forward_size_request': lib-src/lv2/suil/build/../src/x11_in_gtk2.c:172: undefined reference to `XResizeWindow' collect2: error: ld returned 1 exit status Waf: Leaving directory `lib-src/lv2/suil/build' Build failed Therefore link against X11 when using GTK2.
This commit is contained in:
@@ -191,7 +191,7 @@ def build(bld):
|
||||
defines = ['SUIL_SHARED', 'SUIL_INTERNAL'],
|
||||
install_path = module_dir,
|
||||
cflags = cflags,
|
||||
lib = modlib,
|
||||
lib = modlib + ['X11'],
|
||||
linkflags = bld.env.NODELETE_FLAGS)
|
||||
autowaf.use_lib(bld, obj, 'GTK2 GTK2_X11 LV2 LV2_1_4_3')
|
||||
|
||||
|
Reference in New Issue
Block a user