Making the raspberrypi glibc include hard float.

This commit is contained in:
Lluís Batlle i Rossell 2012-12-28 16:53:18 +00:00
parent 33d3cf2d1c
commit affca4a11c

View File

@ -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"