GCC: explicitly use some dev outputs

This commit is contained in:
Tuomas Tynkkynen
2016-05-19 10:04:41 +02:00
committed by Vladimír Čunát
parent 1819181726
commit e254750560
5 changed files with 10 additions and 10 deletions
@@ -165,7 +165,7 @@ stdenv.mkDerivation ({
++ stdenv.lib.optional (libpthread != null) libpthread; ++ stdenv.lib.optional (libpthread != null) libpthread;
extraCPPSpec = extraCPPSpec =
concatStrings (intersperse " " concatStrings (intersperse " "
(map (x: "-I${x}/include") extraCPPDeps)); (map (x: "-I${x.dev or x}/include") extraCPPDeps));
extraLibSpec = extraLibSpec =
if libpthreadCross != null if libpthreadCross != null
then "-L${libpthreadCross}/lib ${libpthreadCross.TARGET_LDFLAGS}" then "-L${libpthreadCross}/lib ${libpthreadCross.TARGET_LDFLAGS}"
@@ -323,7 +323,7 @@ stdenv.mkDerivation ({
# Likewise, the LTO code doesn't find zlib. # Likewise, the LTO code doesn't find zlib.
CPATH = concatStrings CPATH = concatStrings
(intersperse ":" (map (x: x + "/include") (intersperse ":" (map (x: "${x.dev or x}/include")
(optionals (zlib != null) [ zlib ] (optionals (zlib != null) [ zlib ]
++ optionals langJava [ boehmgc ] ++ optionals langJava [ boehmgc ]
++ optionals javaAwtGtk xlibs ++ optionals javaAwtGtk xlibs
@@ -215,7 +215,7 @@ stdenv.mkDerivation ({
++ stdenv.lib.optional (libpthread != null) libpthread; ++ stdenv.lib.optional (libpthread != null) libpthread;
extraCPPSpec = extraCPPSpec =
concatStrings (intersperse " " concatStrings (intersperse " "
(map (x: "-I${x}/include") extraCPPDeps)); (map (x: "-I${x.dev or x}/include") extraCPPDeps));
extraLibSpec = extraLibSpec =
if libpthreadCross != null if libpthreadCross != null
then "-L${libpthreadCross}/lib ${libpthreadCross.TARGET_LDFLAGS}" then "-L${libpthreadCross}/lib ${libpthreadCross.TARGET_LDFLAGS}"
@@ -398,7 +398,7 @@ stdenv.mkDerivation ({
# Likewise, the LTO code doesn't find zlib. # Likewise, the LTO code doesn't find zlib.
CPATH = concatStrings CPATH = concatStrings
(intersperse ":" (map (x: x + "/include") (intersperse ":" (map (x: "${x.dev or x}/include")
(optionals (zlib != null) [ zlib ] (optionals (zlib != null) [ zlib ]
++ optionals langJava [ boehmgc ] ++ optionals langJava [ boehmgc ]
++ optionals javaAwtGtk xlibs ++ optionals javaAwtGtk xlibs
@@ -241,7 +241,7 @@ stdenv.mkDerivation ({
++ stdenv.lib.optional (libpthread != null) libpthread; ++ stdenv.lib.optional (libpthread != null) libpthread;
extraCPPSpec = extraCPPSpec =
concatStrings (intersperse " " concatStrings (intersperse " "
(map (x: "-I${x}/include") extraCPPDeps)); (map (x: "-I${x.dev or x}/include") extraCPPDeps));
extraLibSpec = extraLibSpec =
if libpthreadCross != null if libpthreadCross != null
then "-L${libpthreadCross}/lib ${libpthreadCross.TARGET_LDFLAGS}" then "-L${libpthreadCross}/lib ${libpthreadCross.TARGET_LDFLAGS}"
@@ -460,7 +460,7 @@ stdenv.mkDerivation ({
# Likewise, the LTO code doesn't find zlib. # Likewise, the LTO code doesn't find zlib.
CPATH = concatStrings CPATH = concatStrings
(intersperse ":" (map (x: x + "/include") (intersperse ":" (map (x: "${x.dev or x}/include")
(optionals (zlib != null) [ zlib ] (optionals (zlib != null) [ zlib ]
++ optionals langJava [ boehmgc ] ++ optionals langJava [ boehmgc ]
++ optionals javaAwtGtk xlibs ++ optionals javaAwtGtk xlibs
@@ -244,7 +244,7 @@ stdenv.mkDerivation ({
++ stdenv.lib.optional (libpthread != null) libpthread; ++ stdenv.lib.optional (libpthread != null) libpthread;
extraCPPSpec = extraCPPSpec =
concatStrings (intersperse " " concatStrings (intersperse " "
(map (x: "-I${x}/include") extraCPPDeps)); (map (x: "-I${x.dev or x}/include") extraCPPDeps));
extraLibSpec = extraLibSpec =
if libpthreadCross != null if libpthreadCross != null
then "-L${libpthreadCross}/lib ${libpthreadCross.TARGET_LDFLAGS}" then "-L${libpthreadCross}/lib ${libpthreadCross.TARGET_LDFLAGS}"
@@ -467,7 +467,7 @@ stdenv.mkDerivation ({
# Likewise, the LTO code doesn't find zlib. # Likewise, the LTO code doesn't find zlib.
CPATH = concatStrings CPATH = concatStrings
(intersperse ":" (map (x: x + "/include") (intersperse ":" (map (x: "${x.dev or x}/include")
(optionals (zlib != null) [ zlib ] (optionals (zlib != null) [ zlib ]
++ optionals langJava [ boehmgc ] ++ optionals langJava [ boehmgc ]
++ optionals javaAwtGtk xlibs ++ optionals javaAwtGtk xlibs
+2 -2
View File
@@ -242,7 +242,7 @@ stdenv.mkDerivation ({
++ stdenv.lib.optional (libpthread != null) libpthread; ++ stdenv.lib.optional (libpthread != null) libpthread;
extraCPPSpec = extraCPPSpec =
concatStrings (intersperse " " concatStrings (intersperse " "
(map (x: "-I${x}/include") extraCPPDeps)); (map (x: "-I${x.dev or x}/include") extraCPPDeps));
extraLibSpec = extraLibSpec =
if libpthreadCross != null if libpthreadCross != null
then "-L${libpthreadCross}/lib ${libpthreadCross.TARGET_LDFLAGS}" then "-L${libpthreadCross}/lib ${libpthreadCross.TARGET_LDFLAGS}"
@@ -460,7 +460,7 @@ stdenv.mkDerivation ({
# Likewise, the LTO code doesn't find zlib. # Likewise, the LTO code doesn't find zlib.
CPATH = concatStrings CPATH = concatStrings
(intersperse ":" (map (x: x + "/include") (intersperse ":" (map (x: "${x.dev or x}/include")
(optionals (zlib != null) [ zlib ] (optionals (zlib != null) [ zlib ]
++ optionals langJava [ boehmgc ] ++ optionals langJava [ boehmgc ]
++ optionals javaAwtGtk xlibs ++ optionals javaAwtGtk xlibs