jack2 codebase
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.

34 lines
736B

  1. #! /usr/bin/env python
  2. # encoding: utf-8
  3. # harald at klimachs.de
  4. import re
  5. from waflib.Tools import fc, fc_config, fc_scan
  6. from waflib.Configure import conf
  7. from waflib.Tools.compiler_fc import fc_compiler
  8. fc_compiler['linux'].insert(0, 'fc_bgxlf')
  9. @conf
  10. def find_bgxlf(conf):
  11. fc = conf.find_program(['bgxlf2003_r','bgxlf2003'], var='FC')
  12. conf.get_xlf_version(fc)
  13. conf.env.FC_NAME = 'BGXLF'
  14. @conf
  15. def bg_flags(self):
  16. self.env.SONAME_ST = ''
  17. self.env.FCSHLIB_MARKER = ''
  18. self.env.FCSTLIB_MARKER = ''
  19. self.env.FCFLAGS_fcshlib = ['-fPIC']
  20. self.env.LINKFLAGS_fcshlib = ['-G', '-Wl,-bexpfull']
  21. def configure(conf):
  22. conf.find_bgxlf()
  23. conf.find_ar()
  24. conf.fc_flags()
  25. conf.fc_add_flags()
  26. conf.xlf_flags()
  27. conf.bg_flags()