wscript_build (342B)
1 #! /usr/bin/env python 2 3 """ 4 * the static lib order should be preserved 5 * the static libraries must be given in reverse order 6 """ 7 8 bld.stlib( 9 source = 'a.c', 10 target = 'ST_A' 11 ) 12 13 bld.stlib( 14 source = 'b.c', 15 target = 'ST_B' 16 ) 17 18 bld.program( 19 source = 'main.c', 20 target = 'static_app', 21 use = 'ST_B ST_A' # this is the correct order for ld 22 )