summaryrefslogtreecommitdiff
path: root/toolchains/CC/gcc.TARGETS
diff options
context:
space:
mode:
Diffstat (limited to 'toolchains/CC/gcc.TARGETS')
-rw-r--r--toolchains/CC/gcc.TARGETS38
1 files changed, 38 insertions, 0 deletions
diff --git a/toolchains/CC/gcc.TARGETS b/toolchains/CC/gcc.TARGETS
new file mode 100644
index 0000000..c0b6fbe
--- /dev/null
+++ b/toolchains/CC/gcc.TARGETS
@@ -0,0 +1,38 @@
+{ "defaults":
+ { "type": ["@", "rules", "CC", "defaults"]
+ , "arguments_config": ["TOOLCHAIN_CONFIG"]
+ , "CC": ["gcc/bin/gcc"]
+ , "CXX": ["gcc/bin/g++"]
+ , "AR": ["gcc/bin/ar"]
+ , "LDFLAGS":
+ { "type": "if"
+ , "cond":
+ { "type": "lookup"
+ , "key": "STATIC_RUNLIBS"
+ , "map":
+ { "type": "var"
+ , "name": "TOOLCHAIN_CONFIG"
+ , "default": {"type": "empty_map"}
+ }
+ }
+ , "then": ["-static-libgcc", "-static-libstdc++"]
+ }
+ , "deps":
+ { "type": "if"
+ , "cond":
+ { "type": "lookup"
+ , "key": "STATIC_RUNLIBS"
+ , "map":
+ { "type": "var"
+ , "name": "TOOLCHAIN_CONFIG"
+ , "default": {"type": "empty_map"}
+ }
+ }
+ , "then": []
+ , "else": [["@", "gcc", "", "runlibs"]]
+ }
+ , "toolchain": ["staged-gcc"]
+ , "PATH": ["$(TOOLCHAIN)/gcc/bin", "/bin"]
+ }
+, "staged-gcc": {"type": "install", "dirs": [[["", "toolchain"], "gcc"]]}
+}