]> gitweb @ CieloNegro.org - pkgsrc-ghc.git/blobdiff - patches/patch-compiler_main_SysTools.lhs
Merge branch 'ghc-7.4.1'
[pkgsrc-ghc.git] / patches / patch-compiler_main_SysTools.lhs
diff --git a/patches/patch-compiler_main_SysTools.lhs b/patches/patch-compiler_main_SysTools.lhs
new file mode 100644 (file)
index 0000000..bdf61c2
--- /dev/null
@@ -0,0 +1,24 @@
+$NetBSD$
+
+For systems having as(1) that doesn't recognise .ident
+directives. (Already merged to the upstream)
+
+
+--- compiler/main/SysTools.lhs.orig    2012-02-01 18:10:32.000000000 +0000
++++ compiler/main/SysTools.lhs
+@@ -194,6 +194,7 @@ initSysTools mbMinusB
+         ; targetOS <- readSetting "target os"
+         ; targetWordSize <- readSetting "target word size"
+         ; targetHasGnuNonexecStack <- readSetting "target has GNU nonexec stack"
++        ; targetHasIdentDirective <- readSetting "target has .ident directive"
+         ; targetHasSubsectionsViaSymbols <- readSetting "target has subsections via symbols"
+         ; myExtraGccViaCFlags <- getSetting "GCC extra via C opts"
+         -- On Windows, mingw is distributed with GHC,
+@@ -259,6 +260,7 @@ initSysTools mbMinusB
+                                               platformOS   = targetOS,
+                                               platformWordSize = targetWordSize,
+                                               platformHasGnuNonexecStack = targetHasGnuNonexecStack,
++                                              platformHasIdentDirective = targetHasIdentDirective,
+                                               platformHasSubsectionsViaSymbols = targetHasSubsectionsViaSymbols
+                                           },
+                         sTmpDir = normalise tmpdir,