You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
waf_old/playground/use/order/wscript_build

23 lines
342 B
Python

#! /usr/bin/env python
"""
* the static lib order should be preserved
* the static libraries must be given in reverse order
"""
bld.stlib(
source = 'a.c',
target = 'ST_A'
)
bld.stlib(
source = 'b.c',
target = 'ST_B'
)
bld.program(
source = 'main.c',
target = 'static_app',
use = 'ST_B ST_A' # this is the correct order for ld
)