summaryrefslogtreecommitdiff
path: root/lua_scripts/argvenvp_gcc.lua
diff options
context:
space:
mode:
authorLauri Leukkunen <lle@rahina.org>2008-07-18 12:07:57 +0300
committerLauri Leukkunen <lle@rahina.org>2008-07-18 12:07:57 +0300
commitb2d09f1cf951f451309ecd22934ca47f9a1a232d (patch)
tree277ac6fb1bafb7ec22ede930cad068fa6c0f9532 /lua_scripts/argvenvp_gcc.lua
parent74e22dcb6e1220ffff4d8c33023fee47ab7d8163 (diff)
Fix sb2-init and argvenvp_gcc.lua to work without gcc-specs.modename
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
Diffstat (limited to 'lua_scripts/argvenvp_gcc.lua')
-rw-r--r--lua_scripts/argvenvp_gcc.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lua_scripts/argvenvp_gcc.lua b/lua_scripts/argvenvp_gcc.lua
index 0f4fb34..de6beeb 100644
--- a/lua_scripts/argvenvp_gcc.lua
+++ b/lua_scripts/argvenvp_gcc.lua
@@ -56,20 +56,20 @@ 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
+ if (gcc_specs and gcc_specs ~= "") then
table.insert(tmp.add_tail, "-specs="..gcc_specs)
end
- if (gcc_extra_args) then
+ if (gcc_extra_args and gcc_extra_args ~= "") then
for gcc_extra in string.gmatch(gcc_extra_args, "[^ ]+") do
table.insert(tmp.add_tail, gcc_extra)
end
end
- if (gcc_extra_stdinc) then
+ if (gcc_extra_stdinc and gcc_extra_stdinc ~= "") then
for gcc_stdinc in string.gmatch(gcc_extra_stdinc, "[^ ]+") do
table.insert(tmp.add_tail, gcc_stdinc)
end
end
- if (gcc_block_args) then
+ if (gcc_block_args and gcc_extra_args ~= "") then
for gcc_block in string.gmatch(gcc_block_args, "[^ ]+") do
table.insert(tmp.remove, gcc_block)
end