summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2014-11-02 17:45:40 -0600
committerYaakov Selkowitz <yselkowi@redhat.com>2014-11-02 17:45:40 -0600
commit60a13021afe96180599cd4a8b6f5a015368c4904 (patch)
treed4cbb4324d7df864ef47cb8e6261cd7779382073
parent3518dc17fefd39de22608a99107053efb77af22f (diff)
downloadcygwin-clang-60a13021afe96180599cd4a8b6f5a015368c4904.tar.gz
cygwin-clang-60a13021afe96180599cd4a8b6f5a015368c4904.tar.xz
cygwin-clang-60a13021afe96180599cd4a8b6f5a015368c4904.zip
Enabled -fuse-cxa-atexit flag by default
-rw-r--r--clang-3.4.2-cygwin-cxa-atexit.patch13
-rw-r--r--cygwin-clang.spec7
2 files changed, 19 insertions, 1 deletions
diff --git a/clang-3.4.2-cygwin-cxa-atexit.patch b/clang-3.4.2-cygwin-cxa-atexit.patch
new file mode 100644
index 0000000..d06c2db
--- /dev/null
+++ b/clang-3.4.2-cygwin-cxa-atexit.patch
@@ -0,0 +1,13 @@
+--- origsrc/llvm-3.4.2.src/tools/clang/lib/Driver/Tools.cpp 2014-04-11 15:31:24.000000000 -0500
++++ src/llvm-3.4.2.src/tools/clang/lib/Driver/Tools.cpp 2014-08-07 14:43:01.635600000 -0500
+@@ -3293,8 +3293,7 @@ void Clang::ConstructJob(Compilation &C,
+ // -fuse-cxa-atexit is default.
+ if (!Args.hasFlag(
+ options::OPT_fuse_cxa_atexit, options::OPT_fno_use_cxa_atexit,
+- getToolChain().getTriple().getOS() != llvm::Triple::Cygwin &&
+- getToolChain().getTriple().getOS() != llvm::Triple::MinGW32 &&
++ getToolChain().getTriple().getOS() != llvm::Triple::MinGW32 &&
+ getToolChain().getArch() != llvm::Triple::hexagon &&
+ getToolChain().getArch() != llvm::Triple::xcore) ||
+ KernelOrKext)
+
diff --git a/cygwin-clang.spec b/cygwin-clang.spec
index c75ac80..bb6537a 100644
--- a/cygwin-clang.spec
+++ b/cygwin-clang.spec
@@ -2,7 +2,7 @@
Name: cygwin-clang
Version: 3.4.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Clang compiler for Cygwin toolchain
Group: Development/Languages
@@ -14,6 +14,7 @@ Source1: http://www.llvm.org/releases/%{version}/cfe-%{version}.src.tar.gz
Patch0: clang-3.4.2-cygwin-dllexport.patch
Patch1: clang-3.4.2-cygwin-includes.patch
Patch2: clang-3.4.2-cygwin64.patch
+Patch3: clang-3.4.2-cygwin-cxa-atexit.patch
BuildRequires: cygwin32-filesystem
BuildRequires: cygwin64-filesystem
@@ -55,6 +56,7 @@ mv cfe-%{version}.src tools/clang
%patch0 -p2
%patch1 -p2
%patch2 -p2
+%patch3 -p2
%build
@@ -124,6 +126,9 @@ popd
%changelog
+* Sun Nov 02 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 3.4.2-2
+- Enabled -fuse-cxa-atexit flag by default
+
* Wed Jul 30 2014 Yaakov Selkowitz <yselkowitz@cygwin.com> - 3.4.2-1
- Version bump
- Add cygwin64 compiler