tools/gcc.lua: fix /usr/lib64 being used as search dir before project's libdir
Move the /usr/lib64 added by the compiler script after every other -L
declaration.
fixes
}
function gcc.getLibraryDirectories(cfg)
- local flags = config.mapFlags(cfg, gcc.libraryDirectories)
+ local flags = {}
-- Scan the list of linked libraries. If any are referenced with
-- paths, add those to the list of library search paths. The call
table.insert(flags, '-L' .. p.quoted(dir))
end
+ local gccFlags = config.mapFlags(cfg, gcc.libraryDirectories)
+ flags = table.join(flags, gccFlags)
+
return flags
end
