1234567891011121314151617181920212223242526 |
- #! /usr/bin/env python
- # encoding: utf-8
- # Thomas Nagy, 2011 (ita)
- """
- rpath processing example:
- add all rpaths from local libraries
- (warning: do not use in production code...)
- """
- VERSION='0.0.1'
- APPNAME='local_rpath'
- top = '.'
- def options(opt):
- opt.load('compiler_c')
- def configure(conf):
- conf.load('compiler_c local_rpath')
- def build(bld):
- bld.shlib(source='a.c', target='foo')
- bld.program(source='main.c', target='bar', use='foo')
|