File tree 9 files changed +10
-10
lines changed
os-specific/darwin/binutils
9 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ in stdenv.mkDerivation rec {
50
50
"-DLLVM_BUILD_TESTS=ON"
51
51
"-DLLVM_ENABLE_FFI=ON"
52
52
"-DLLVM_REQUIRES_RTTI=1"
53
- "-DLLVM_BINUTILS_INCDIR=${ binutils . dev or binutils } /include"
53
+ "-DLLVM_BINUTILS_INCDIR=${ stdenv . lib . getDev binutils } /include"
54
54
"-DCMAKE_CXX_FLAGS=-std=c++11"
55
55
] ++ stdenv . lib . optional ( ! stdenv . isDarwin ) "-DBUILD_SHARED_LIBS=ON" ;
56
56
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ in stdenv.mkDerivation rec {
47
47
] ++ stdenv . lib . optional enableSharedLibraries
48
48
"-DBUILD_SHARED_LIBS=ON"
49
49
++ stdenv . lib . optional ( ! isDarwin )
50
- "-DLLVM_BINUTILS_INCDIR=${ binutils . dev } /include"
50
+ "-DLLVM_BINUTILS_INCDIR=${ stdenv . lib . getDev binutils } /include"
51
51
++ stdenv . lib . optionals ( isDarwin ) [
52
52
"-DCMAKE_CXX_FLAGS=-stdlib=libc++"
53
53
"-DCAN_TARGET_i386=false"
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ in stdenv.mkDerivation rec {
67
67
] ++ stdenv . lib . optional enableSharedLibraries
68
68
"-DBUILD_SHARED_LIBS=ON"
69
69
++ stdenv . lib . optional ( ! isDarwin )
70
- "-DLLVM_BINUTILS_INCDIR=${ binutils . dev } /include"
70
+ "-DLLVM_BINUTILS_INCDIR=${ stdenv . lib . getDev binutils } /include"
71
71
++ stdenv . lib . optionals ( isDarwin ) [
72
72
"-DLLVM_ENABLE_LIBCXX=ON"
73
73
"-DCAN_TARGET_i386=false"
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ in stdenv.mkDerivation rec {
62
62
] ++ stdenv . lib . optional enableSharedLibraries [
63
63
"-DLLVM_LINK_LLVM_DYLIB=ON"
64
64
] ++ stdenv . lib . optional ( ! isDarwin )
65
- "-DLLVM_BINUTILS_INCDIR=${ binutils . dev } /include"
65
+ "-DLLVM_BINUTILS_INCDIR=${ stdenv . lib . getDev binutils } /include"
66
66
++ stdenv . lib . optionals ( isDarwin ) [
67
67
"-DLLVM_ENABLE_LIBCXX=ON"
68
68
"-DCAN_TARGET_i386=false"
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ in stdenv.mkDerivation rec {
105
105
] ++ stdenv . lib . optional enableSharedLibraries [
106
106
"-DLLVM_LINK_LLVM_DYLIB=ON"
107
107
] ++ stdenv . lib . optional ( ! isDarwin )
108
- "-DLLVM_BINUTILS_INCDIR=${ binutils . dev } /include"
108
+ "-DLLVM_BINUTILS_INCDIR=${ stdenv . lib . getDev binutils } /include"
109
109
++ stdenv . lib . optionals ( isDarwin ) [
110
110
"-DLLVM_ENABLE_LIBCXX=ON"
111
111
"-DCAN_TARGET_i386=false"
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ in stdenv.mkDerivation rec {
89
89
"-DSPHINX_WARNINGS_AS_ERRORS=OFF"
90
90
]
91
91
++ stdenv . lib . optional ( ! isDarwin )
92
- "-DLLVM_BINUTILS_INCDIR=${ binutils . dev } /include"
92
+ "-DLLVM_BINUTILS_INCDIR=${ stdenv . lib . getDev binutils } /include"
93
93
++ stdenv . lib . optionals ( isDarwin ) [
94
94
"-DLLVM_ENABLE_LIBCXX=ON"
95
95
"-DCAN_TARGET_i386=false"
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
42
42
43
43
cmakeFlags = with stdenv ; [
44
44
"-DLLVM_ENABLE_FFI=ON"
45
- "-DLLVM_BINUTILS_INCDIR=${ binutils . dev } /include"
45
+ "-DLLVM_BINUTILS_INCDIR=${ stdenv . lib . getDev binutils } /include"
46
46
"-DCMAKE_CXX_FLAGS=-std=c++11"
47
47
] ++ stdenv . lib . optional ( ! isDarwin ) "-DBUILD_SHARED_LIBS=ON" ;
48
48
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ stdenv.mkDerivation {
37
37
ln -sf "${ cctools } /bin/$i" "$out/bin/$i"
38
38
done
39
39
40
- for i in ${ binutils-raw . dev or binutils-raw . out } /include/*.h; do
40
+ for i in ${ stdenv . lib . getDev binutils-raw } /include/*.h; do
41
41
ln -s "$i" "$out/include/$(basename $i)"
42
42
done
43
43
Original file line number Diff line number Diff line change @@ -177,9 +177,9 @@ rec {
177
177
178
178
# Copy binutils.
179
179
for i in as ld ar ranlib nm strip readelf objdump; do
180
- cp ${ binutils . binutils . out } /bin/$i $out/bin
180
+ cp ${ binutils . out } /bin/$i $out/bin
181
181
done
182
- cp -d ${ binutils . binutils . lib } /lib/lib*.so* $out/lib
182
+ cp -d ${ binutils . lib } /lib/lib*.so* $out/lib
183
183
184
184
chmod -R u+w $out
185
185
You can’t perform that action at this time.
0 commit comments