clean some include flags that weren't really needed

Tested the builds still work (x86_64-linux).
This commit is contained in:
Vladimír Čunát
2013-08-03 10:45:13 +02:00
parent d374527509
commit 98f3716650
7 changed files with 7 additions and 18 deletions

View File

@@ -12,15 +12,17 @@
# $out/bin/gtester-report' to postInstall if this is solved
let
# some packages don't get "Cflags" from pkgconfig correctly
# and then fail to build when directly including like <glib/...>
# Some packages don't get "Cflags" from pkgconfig correctly
# and then fail to build when directly including like <glib/...>.
# This is intended to be run in postInstall of any package
# which has $out/include/ containing just some disjunct directories.
flattenInclude = ''
for dir in $out/include/*; do
cp -r $dir/* "$out/include/"
for dir in "$out"/include/*; do
cp -r "$dir"/* "$out/include/"
rm -r "$dir"
ln -s . "$dir"
done
ln -sr -t "$out/include/" $out/lib/*/include/* 2>/dev/null || true
ln -sr -t "$out/include/" "$out"/lib/*/include/* 2>/dev/null || true
'';
in
with { inherit (stdenv.lib) optionalString; };