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.
23 lines
342 B
Python
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
|
|
)
|