summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2012-12-22 16:29:17 +0000
committerLluís Batlle i Rossell <viric@viric.name>2012-12-26 22:00:29 +0000
commit2194b98565d644a5a255f5498e3b392e27e1ae3d (patch)
tree0b8031fb47398bf5f5097f80d8ccadccd20304e6 /pkgs/development/compilers/gcc
parent5b975f3c90e541bd807e825a45d693f769b7b027 (diff)
downloadnixpkgs-2194b98565d644a5a255f5498e3b392e27e1ae3d.tar
nixpkgs-2194b98565d644a5a255f5498e3b392e27e1ae3d.tar.gz
nixpkgs-2194b98565d644a5a255f5498e3b392e27e1ae3d.tar.bz2
nixpkgs-2194b98565d644a5a255f5498e3b392e27e1ae3d.tar.lz
nixpkgs-2194b98565d644a5a255f5498e3b392e27e1ae3d.tar.xz
nixpkgs-2194b98565d644a5a255f5498e3b392e27e1ae3d.tar.zst
nixpkgs-2194b98565d644a5a255f5498e3b392e27e1ae3d.zip
Removing any cross-building kind of native build for the pi.
Diffstat (limited to 'pkgs/development/compilers/gcc')
-rw-r--r--pkgs/development/compilers/gcc/4.6/builder.sh6
-rw-r--r--pkgs/development/compilers/gcc/4.6/default.nix2
2 files changed, 2 insertions, 6 deletions
diff --git a/pkgs/development/compilers/gcc/4.6/builder.sh b/pkgs/development/compilers/gcc/4.6/builder.sh
index e6e7542b6ac..fbfe86a7b31 100644
--- a/pkgs/development/compilers/gcc/4.6/builder.sh
+++ b/pkgs/development/compilers/gcc/4.6/builder.sh
@@ -75,11 +75,7 @@ if test "$noSysDirs" = "1"; then
         fi
     else
         if test -z "$NIX_GCC_CROSS"; then
-            if [ $system == "armv6l-linux" ]; then
-                EXTRA_TARGET_CFLAGS="-mcpu=armv6 -mfpu=vfp -mhard-float -marm $EXTRA_FLAGS"
-            else
-                EXTRA_TARGET_CFLAGS="$EXTRA_FLAGS"
-            fi
+            EXTRA_TARGET_CFLAGS="$EXTRA_FLAGS"
             EXTRA_TARGET_LDFLAGS="$EXTRA_LDFLAGS"
         else
             # This the case of cross-building the gcc.
diff --git a/pkgs/development/compilers/gcc/4.6/default.nix b/pkgs/development/compilers/gcc/4.6/default.nix
index 38773fba973..a504eb96a8b 100644
--- a/pkgs/development/compilers/gcc/4.6/default.nix
+++ b/pkgs/development/compilers/gcc/4.6/default.nix
@@ -298,7 +298,7 @@ stdenv.mkDerivation ({
     ${if (cross == null && stdenv.isi686) then "--with-arch=i686" else ""}
     ${if cross != null then crossConfigureFlags else ""}
   " + (if (cross == null && stdenv.platform.name == "raspberrypi") then
-      "--with-arch=armv6 --with-fpu=vfp --with-float=hard --with-mode=arm --build=armv6l-linux-gnueabi --host=armv6l-linux-gnueabihf" else "");
+      "--with-arch=armv6 --with-fpu=vfp --with-float=hard --with-mode=arm --build=arm-linux-gnueabi --host=arm-linux-gnueabihf" else "");
   # ^ This above is out of "" because we don't want to rebuild stdenv in other archs
 
   targetConfig = if (cross != null) then cross.config else null;