]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Appveyor: Disable gcc hardening in Windows 64-bit builds
authorteor <teor@torproject.org>
Wed, 5 Sep 2018 08:32:46 +0000 (18:32 +1000)
committerteor <teor@torproject.org>
Fri, 7 Sep 2018 03:52:20 +0000 (13:52 +1000)
As of August 29, 2018, Appveyor images come with gcc 8.2.0 by
default. 64-bit Windows executables compiled with gcc 8.2.0 and
tor's --enable-gcc-hardening crash.

Fixes bug 27460; bugfix on 0.3.4.1-alpha.

.appveyor.yml
changes/bug27460 [new file with mode: 0644]

index 690f93e5b66c9575d456a86d2d7a2668b8070e17..cb8446f43060034991ddf6c726bf1f15f2720705 100644 (file)
@@ -9,9 +9,11 @@ environment:
   - target: i686-w64-mingw32\r
     compiler_path: mingw32\r
     openssl_path: /c/OpenSSL-Win32\r
+    hardening:\r
   - target: x86_64-w64-mingw32\r
     compiler_path: mingw64\r
     openssl_path: /c/OpenSSL-Win64\r
+    hardening: --disable-gcc-hardening\r
 \r
 install:\r
 - ps: >-\r
@@ -41,7 +43,7 @@ build_script:
             Set-Location "${env:build}"\r
             Execute-Bash "which ${env:target}-gcc"\r
             Execute-Bash "${env:target}-gcc --version"\r
-            Execute-Bash "../configure --prefix=/${env:compiler_path} --build=${env:target} --host=${env:target} --disable-asciidoc --enable-fatal-warnings --with-openssl-dir=${env:openssl_path}"\r
+            Execute-Bash "../configure --prefix=/${env:compiler_path} --build=${env:target} --host=${env:target} --disable-asciidoc --enable-fatal-warnings --with-openssl-dir=${env:openssl_path} ${env:hardening}"\r
             Execute-Bash "V=1 make -j2"\r
             Execute-Bash "V=1 make -j2 install"\r
      }\r
diff --git a/changes/bug27460 b/changes/bug27460
new file mode 100644 (file)
index 0000000..53c4c7d
--- /dev/null
@@ -0,0 +1,6 @@
+  o Minor bugfixes (continuous integration):
+    - Disable gcc hardening in Appveyor Windows 64-bit builds. As of
+      August 29, 2018, Appveyor images come with gcc 8.2.0 by default.
+      64-bit Windows executables compiled with gcc 8.2.0 and
+      tor's --enable-gcc-hardening crash.
+      Fixes bug 27460; bugfix on 0.3.4.1-alpha.