mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
Making the raspberrypi glibc include hard float.
This commit is contained in:
parent
33d3cf2d1c
commit
affca4a11c
@ -114,10 +114,20 @@ stdenv.mkDerivation ({
|
|||||||
&& cross.platform.kernelMajor == "2.6") [
|
&& cross.platform.kernelMajor == "2.6") [
|
||||||
"--enable-kernel=2.6.0"
|
"--enable-kernel=2.6.0"
|
||||||
"--with-__thread"
|
"--with-__thread"
|
||||||
] ++ stdenv.lib.optionals stdenv.isArm [
|
] ++ stdenv.lib.optionals (cross == null &&
|
||||||
|
(stdenv.system == "armv5tel-linux")) [
|
||||||
"--host=arm-linux-gnueabi"
|
"--host=arm-linux-gnueabi"
|
||||||
"--build=arm-linux-gnueabi"
|
"--build=arm-linux-gnueabi"
|
||||||
"--without-fp"
|
"--without-fp"
|
||||||
|
|
||||||
|
# To avoid linking with -lgcc_s (dynamic link)
|
||||||
|
# so the glibc does not depend on its compiler store path
|
||||||
|
"libc_cv_as_needed=no"
|
||||||
|
] ++ stdenv.lib.optionals (cross == null && stdenv.platform.name == "raspberrypi") [
|
||||||
|
"--host=arm-linux-gnueabi"
|
||||||
|
"--build=arm-linux-gnueabi"
|
||||||
|
"--with-fp"
|
||||||
|
|
||||||
# To avoid linking with -lgcc_s (dynamic link)
|
# To avoid linking with -lgcc_s (dynamic link)
|
||||||
# so the glibc does not depend on its compiler store path
|
# so the glibc does not depend on its compiler store path
|
||||||
"libc_cv_as_needed=no"
|
"libc_cv_as_needed=no"
|
||||||
|
Loading…
Reference in New Issue
Block a user