summaryrefslogtreecommitdiff
path: root/lua_scripts/argvenvp_gcc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua_scripts/argvenvp_gcc.lua')
-rw-r--r--lua_scripts/argvenvp_gcc.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua_scripts/argvenvp_gcc.lua b/lua_scripts/argvenvp_gcc.lua
index 48249a0..0f4fb34 100644
--- a/lua_scripts/argvenvp_gcc.lua
+++ b/lua_scripts/argvenvp_gcc.lua
@@ -38,6 +38,7 @@ gcc_tools = {
gcc_bindir = os.getenv("SBOX_CROSS_GCC_DIR")
gcc_subst_prefix = os.getenv("SBOX_CROSS_GCC_SUBST_PREFIX")
gcc_extra_args = os.getenv("SBOX_EXTRA_CROSS_COMPILER_ARGS")
+gcc_specs = os.getenv("SBOX_CROSS_GCC_SPECS_FILE")
gcc_extra_stdinc = os.getenv("SBOX_EXTRA_CROSS_COMPILER_STDINC")
gcc_block_args = os.getenv("SBOX_BLOCK_CROSS_COMPILER_ARGS")
ld_extra_args = os.getenv("SBOX_EXTRA_CROSS_LD_ARGS")
@@ -55,6 +56,9 @@ for prefix in string.gmatch(":" .. os.getenv("SBOX_CROSS_GCC_PREFIX_LIST"), "[^:
tmp.new_filename = gcc_bindir .. "/" .. gcc_subst_prefix .. gcc_compilers[i]
tmp.add_tail = {}
tmp.remove = {}
+ if (gcc_specs) then
+ table.insert(tmp.add_tail, "-specs="..gcc_specs)
+ end
if (gcc_extra_args) then
for gcc_extra in string.gmatch(gcc_extra_args, "[^ ]+") do
table.insert(tmp.add_tail, gcc_extra)