能够正常识别 link.lds 文件
This commit is contained in:
10
BUILD.gn
10
BUILD.gn
@@ -9,8 +9,16 @@ import("//build/buildcfg.gni")
|
||||
|
||||
module_name = get_path_info(rebase_path("."), "name")
|
||||
|
||||
executable("out"){
|
||||
executable("kunlun.out"){
|
||||
deps=[":$module_name"]
|
||||
link_path=rebase_path("${kl_ld_script}")
|
||||
link_file=get_path_info(link_path,"file")
|
||||
link_dir=get_path_info(link_path,"dir")
|
||||
ldflags=[
|
||||
"-Wl,-T" + link_file,
|
||||
"-Wl,-u_printf_float",
|
||||
"-L" + link_dir,
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user