Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
933B

  1. diff --git a/wscript b/wscript
  2. index f6780d0..fa513a4 100644
  3. --- a/wscript
  4. +++ b/wscript
  5. @@ -300,9 +300,10 @@ def build_util(bld, name, defines, libs=''):
  6. install_path = '${BINDIR}')
  7. if not bld.env.BUILD_SHARED or bld.env.STATIC_PROGS:
  8. obj.use = 'liblilv_static'
  9. + obj.lib = ['dl']
  10. if bld.env.STATIC_PROGS:
  11. if not bld.env.MSVC_COMPILER:
  12. - obj.lib = ['m']
  13. + obj.lib = ['dl', 'm']
  14. obj.env.SHLIB_MARKER = obj.env.STLIB_MARKER
  15. obj.linkflags = ['-static', '-Wl,--start-group']
  16. return obj
  17. @@ -543,7 +544,7 @@ def build(bld):
  18. not bld.env.STATIC_PROGS):
  19. obj = build_util(bld, 'utils/lv2bench', defines)
  20. if bld.env.DEST_OS != 'darwin':
  21. - obj.lib = ['rt']
  22. + obj.lib = ['dl', 'rt']
  23. # Documentation
  24. autowaf.build_dox(bld, 'LILV', LILV_VERSION, top, out)