1. Dimitar Trendafilov
  2. premake-dev


Dimitar Trendafilov  committed da755db

* fixed missing library directories for makefiles
* fixed missing external dependencies for makefiles

  • Participants
  • Parent commits 19f8d31
  • Branches default

Comments (0)

Files changed (2)

File src/project/config.lua

View file
 					-- if the caller wants the whole project object, then okay
 					if part == "object" then
 						item = prjcfg
-					-- Just some part of the path. Grab the whole thing now, split it up
-					-- below. Skip external projects, because I have no way to know their
-					-- target file (without parsing the project, which I'm not doing)
-					elseif not prj.external then
+					else
 						item = project.getrelative(cfg.project, prjcfg.linktarget.fullpath)
 			elseif not prj and (kind == "system" or kind == "all") then
 				-- Make sure this library makes sense for the requested linkage; don't
 				-- link managed .DLLs into unmanaged code, etc.

File src/tools/gcc.lua

View file
 		-- Scan the list of linked libraries. If any are referenced with
 		-- paths, add those to the list of library search paths
-		for _, dir in ipairs(config.getlinks(cfg, "system", "directory")) do
+		for _, dir in ipairs(config.getlinks(cfg, "all", "directory")) do
 			table.insert(flags, '-L' .. project.getrelative(cfg.project, dir))