fc_bgxlf.py 726 B

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