ghc/ghc-7.4.1-armv7hl-llc-hard-float.patch
Jens Petersen deef098bfc avoid actually running aclocal (for +d16) by using hard float patch closer to Ubuntu
-drop the original debian armhf llvm driver patches
2012-04-27 10:56:12 +09:00

16 lines
966 B
Diff

diff -u ghc-7.4.1/compiler/main/DriverPipeline.hs.orig ghc-7.4.1/compiler/main/DriverPipeline.hs
--- ghc-7.4.1/compiler/main/DriverPipeline.hs.orig 2012-02-02 03:10:32.000000000 +0900
+++ ghc-7.4.1/compiler/main/DriverPipeline.hs 2012-04-27 10:42:53.142111769 +0900
@@ -1376,9 +1376,9 @@
-- does not enable VFP by default. Let's do this manually here
fpOpts = case platformArch (targetPlatform dflags) of
ArchARM ARMv7 ext -> if (elem VFPv3 ext)
- then ["-mattr=+v7,+vfp3"]
+ then ["-mattr=+v7,+vfp3", "-float-abi=hard"]
else if (elem VFPv3D16 ext)
- then ["-mattr=+v7,+vfp3,+d16"]
+ then ["-mattr=+v7,+vfp3,+d16", "-float-abi=hard"]
else []
_ -> []