mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add pkg.make.needed-vars.AR.
This commit is contained in:
parent
536d7a06f5
commit
2dffa408ad
1 changed files with 3 additions and 0 deletions
|
@ -274,6 +274,9 @@ void Make(metainfo_t* minfo, const char* make_target,
|
||||||
free(make);
|
free(make);
|
||||||
make = join_paths(minfo->package_dir, override_make);
|
make = join_paths(minfo->package_dir, override_make);
|
||||||
}
|
}
|
||||||
|
if ( dictionary_get(pkg_info, "pkg.make.needed-vars.AR", NULL) )
|
||||||
|
setenv("AR", strcmp(minfo->build, minfo->host) ?
|
||||||
|
print_string("%s-ar", minfo->host) : "ar", 1);
|
||||||
if ( dictionary_get(pkg_info, "pkg.make.needed-vars.CC", NULL) )
|
if ( dictionary_get(pkg_info, "pkg.make.needed-vars.CC", NULL) )
|
||||||
setenv("CC", strcmp(minfo->build, minfo->host) ?
|
setenv("CC", strcmp(minfo->build, minfo->host) ?
|
||||||
print_string("%s-gcc", minfo->host) : "gcc", 1);
|
print_string("%s-gcc", minfo->host) : "gcc", 1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue