mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-29 21:41:44 +01:00
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
|
|
)
|