From b2d09f1cf951f451309ecd22934ca47f9a1a232d Mon Sep 17 00:00:00 2001 From: Lauri Leukkunen Date: Fri, 18 Jul 2008 12:07:57 +0300 Subject: Fix sb2-init and argvenvp_gcc.lua to work without gcc-specs.modename Signed-off-by: Lauri Leukkunen --- lua_scripts/argvenvp_gcc.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lua_scripts/argvenvp_gcc.lua') 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 -- cgit v1.2.3