ghc*Binary: use $OBJCOPY when invoking objcopy (touchup musl fix)
This commit is contained in:
parent
9a10434f4d
commit
93e3eecdb3
@ -115,7 +115,7 @@ stdenv.mkDerivation rec {
|
|||||||
# [1] http://refspecs.linuxbase.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/baselib---strdup-1.html
|
# [1] http://refspecs.linuxbase.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/baselib---strdup-1.html
|
||||||
# Use objcopy magic to make the change:
|
# Use objcopy magic to make the change:
|
||||||
stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
find ./ghc-${version}/rts -name "libHSrts*.a" -exec objcopy --redefine-sym __strdup=strdup {} \;
|
find ./ghc-${version}/rts -name "libHSrts*.a" -exec ''${OBJCOPY:-objcopy} --redefine-sym __strdup=strdup {} \;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePlatforms = [ ];
|
configurePlatforms = [ ];
|
||||||
|
@ -107,7 +107,7 @@ stdenv.mkDerivation rec {
|
|||||||
# [1] http://refspecs.linuxbase.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/baselib---strdup-1.html
|
# [1] http://refspecs.linuxbase.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/baselib---strdup-1.html
|
||||||
# Use objcopy magic to make the change:
|
# Use objcopy magic to make the change:
|
||||||
stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
find ./ghc-${version}/rts -name "libHSrts*.a" -exec objcopy --redefine-sym __strdup=strdup {} \;
|
find ./ghc-${version}/rts -name "libHSrts*.a" -exec ''${OBJCOPY:-objcopy} --redefine-sym __strdup=strdup {} \;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePlatforms = [ ];
|
configurePlatforms = [ ];
|
||||||
|
Loading…
Reference in New Issue
Block a user