Skip to content

Commit 32c1fdb

Browse files
committed
Backport ruby-head changes to ruby-3.4
commit 5386837 and commit a547657
1 parent dfae869 commit 32c1fdb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mingw-w64-ruby34/PKGBUILD

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
1919
"${MINGW_PACKAGE_PREFIX}-libffi"
2020
"${MINGW_PACKAGE_PREFIX}-libyaml"
2121
"${MINGW_PACKAGE_PREFIX}-openssl>=3.0.0"
22-
"${MINGW_PACKAGE_PREFIX}-zlib")
22+
"${MINGW_PACKAGE_PREFIX}-zlib"
23+
"${MINGW_PACKAGE_PREFIX}-libwinpthread-git")
2324
options=('staticlibs' 'strip')
2425
source=("https://cache.ruby-lang.org/pub/ruby/${pkgver2%.*}/${_realname}-${pkgver2}.tar.xz"
2526
0001-Add-C-ext-win32-dll_directory-as-an-alternative-to-f.patch
@@ -46,7 +47,7 @@ build() {
4647

4748
CFLAGS="-O3 -fstack-protector-strong"
4849
PLACEHOLDER_DLL_RES=`cygpath -m ${srcdir}/build-${MSYSTEM}/placeholder-manifest-dll.res`
49-
LDFLAGS="-pipe -s -fstack-protector-strong ${PLACEHOLDER_DLL_RES}"
50+
LDFLAGS="-pipe -s -fstack-protector-strong ${PLACEHOLDER_DLL_RES} -lpthread"
5051
CXXFLAGS="-Wno-dll-attribute-on-redeclaration"
5152

5253
cp ${srcdir}/*.ico .

0 commit comments

Comments
 (0)