1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/cargo/cargo.conf
3 # Copyright (C) 2018 - 2022 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
14 function cargo_config() {
18 cat <<-EOT > $CARGO_HOME/config
19 [target.${arch_target/-t2-/-unknown-}]
20 #cc = "${archprefix}cc"
21 #cxx = "${archprefix}c++"
22 #ar = "${archprefix}ar"
23 #ranlib = "${archprefix}ranlib"
24 linker = "${archprefix}cc"
28 hook_add premake 5 "cargo_config" &&
29 export PKG_CONFIG_ALLOW_CROSS=1