drwmingw: fix build with gcc 10
See: 200852c1fe (commitcomment-45324831)
This commit is contained in:
@@ -17,16 +17,19 @@ makedepends=(${MINGW_PACKAGE_PREFIX}-discount
|
||||
url='https://github.com/jrfonseca/drmingw'
|
||||
source=(${_realname}-${pkgver}.tar.gz::"https://github.com/jrfonseca/drmingw/archive/${pkgver}.tar.gz"
|
||||
import-libs.patch
|
||||
install-files.patch)
|
||||
install-files.patch
|
||||
gcc-10.2.0.patch)
|
||||
options=(!strip staticlibs)
|
||||
sha256sums=('a09536e1fd7f0908baa68f7414d57e81fc4b02fe5a63fdd1db73d12f00d775c1'
|
||||
'2098bb85c6fdd4c9879d1c23702b570087443bcd56f083563126f3ac93e14a93'
|
||||
'25f67789665a02ed47396bf3af85447a045ae0bb1d23991d66571243aae6bbfb')
|
||||
'25f67789665a02ed47396bf3af85447a045ae0bb1d23991d66571243aae6bbfb'
|
||||
'c49e6f69437aed84884dfa756d3e5fa35031ac63d95e3a817db71a775be57a4b')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${_realname}-${pkgver}"
|
||||
#patch -p1 -i ${srcdir}/import-libs.patch
|
||||
patch -p1 -i ${srcdir}/install-files.patch
|
||||
patch -p1 -i ${srcdir}/gcc-10.2.0.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
11
mingw-w64-drmingw/gcc-10.2.0.patch
Normal file
11
mingw-w64-drmingw/gcc-10.2.0.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
diff -Naur drmingw-0.9.2.a/src/common/debugger.cpp drmingw-0.9.2.b/src/common/debugger.cpp
|
||||
--- drmingw-0.9.2.a/src/common/debugger.cpp 2019-07-29 23:10:07.000000000 +0200
|
||||
+++ drmingw-0.9.2.b/src/common/debugger.cpp 2020-12-01 08:21:29.355323100 +0100
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
+#include <string>
|
||||
|
||||
#include <windows.h>
|
||||
#include <ntstatus.h>
|
||||
Reference in New Issue
Block a user