Commit 2dffa408 authored by Jonas Termansen's avatar Jonas Termansen

Add pkg.make.needed-vars.AR.

parent 536d7a06
......@@ -274,6 +274,9 @@ void Make(metainfo_t* minfo, const char* make_target,
free(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) )
setenv("CC", strcmp(minfo->build, minfo->host) ?
print_string("%s-gcc", minfo->host) : "gcc", 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment