mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
23 lines
977 B
Diff
23 lines
977 B
Diff
diff --git a/toolchain/gcc_toolchain.gni b/toolchain/gcc_toolchain.gni
|
|
index 80e2a362a..df138c87b 100644
|
|
--- a/build/toolchain/gcc_toolchain.gni
|
|
+++ b/build/toolchain/gcc_toolchain.gni
|
|
@@ -355,6 +355,8 @@ template("gcc_toolchain") {
|
|
# AIX does not support either -D (deterministic output) or response
|
|
# files.
|
|
command = "$ar -X64 {{arflags}} -r -c -s {{output}} {{inputs}}"
|
|
+ } else if (current_os == "mac") {
|
|
+ command = "$ar {{arflags}} -r -c -s {{output}} {{inputs}}"
|
|
} else {
|
|
rspfile = "{{output}}.rsp"
|
|
rspfile_content = "{{inputs}}"
|
|
@@ -546,7 +548,7 @@ template("gcc_toolchain") {
|
|
|
|
start_group_flag = ""
|
|
end_group_flag = ""
|
|
- if (current_os != "aix") {
|
|
+ if (current_os != "aix" && current_os != "mac") {
|
|
# the "--start-group .. --end-group" feature isn't available on the aix ld.
|
|
start_group_flag = "-Wl,--start-group"
|
|
end_group_flag = "-Wl,--end-group "
|