Skip to content

Commit

Permalink
writeC: fix finding of libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Lassulus authored and Profpatsch committed Apr 21, 2019
1 parent b33da46 commit ea9161e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/build-support/writers/default.nix
Expand Up @@ -94,8 +94,8 @@ rec {
]}
gcc \
${optionalString (libraries != [])
"$(pkgs.pkgconfig}/bin/pkg-config --cflags --libs ${
concatMapStringsSep " " (lib: escapeShellArg (builtins.parseDrvName lib.name).name) (libraries)
"$(pkg-config --cflags --libs ${
concatMapStringsSep " " (pkg: "$(find ${escapeShellArg pkg}/lib/pkgsconfig -name \*.pc -exec basename {} \;)") libraries
})"
} \
-O \
Expand Down

0 comments on commit ea9161e

Please sign in to comment.