Instruct the linker to set the major & minor subsystem versions in the PE header to 6 & 1 (NT 6.1 which corresponds to Windows 7). Similar to the behaviour on macOS, the binary will now refuse to run on unsupported versions of Windows, which, for us, is XP & Vista.
build: enforce minimum required Windows version (7) #18956
pull fanquake wants to merge 1 commits into bitcoin:master from fanquake:window_enforce_runtime_version changing 1 files +2 −0-
fanquake commented at 8:00 am on May 12, 2020: member
-
fanquake added the label Windows on May 12, 2020
-
fanquake added the label Build system on May 12, 2020
-
fanquake added the label Needs gitian build on May 12, 2020
-
fanquake added the label Needs Guix build on May 12, 2020
-
in configure.ac:594 in 9d6c696767 outdated
589@@ -590,6 +590,10 @@ case $host in 590 archive_cmds_CXX="\$CC -shared \$libobjs \$deplibs \$compiler_flags -static -o \$output_objdir/\$soname \${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker \$lib" 591 postdeps_CXX= 592 593+ dnl We require at least Windows 7 (NT 6.1) 594+ AX_CHECK_LINK_FLAG([[-Wl,--major-subsystem-version -Wl,6]], [LDFLAGS="$LDFLAGS -Wl,--major-subsystem-version -Wl,6"],, [[$LDFLAG_WERROR]])
laanwj commented at 4:53 pm on May 12, 2020:Would it be possible to combine these into one line/check? Specifying the one doesn’t make sense without the other, after all
fanquake commented at 3:06 am on May 14, 2020:Sure. I’ve merged them into a single check.
laanwj commented at 5:55 pm on May 14, 2020:Thanks!fanquake renamed this:
build: enforce minumim required Windows version (7)
build: enforce minimum required Windows version (7)
on May 12, 2020build: enforce minimum required Windows version (7)
Instruct the linker to set the major & minor subsystem versions in the PE header to 6 & 1 (NT 6.1 which corresponds to Windows 7). Similar to macOS, the binary will now refuse to run on unsupported versions of Windows.
fanquake force-pushed on May 14, 2020DrahtBot removed the label Needs Guix build on May 14, 2020MarcoFalke deleted a comment on May 14, 2020MarcoFalke added the label Needs Guix build on May 14, 2020laanwj commented at 5:56 pm on May 14, 2020: memberACK e8a8cff07c409c7eecd478d3df36c7ba92c59730DrahtBot commented at 7:55 am on May 15, 2020: memberGitian builds
DrahtBot removed the label Needs gitian build on May 15, 2020DrahtBot commented at 10:43 pm on May 16, 2020: memberGuix builds
DrahtBot removed the label Needs Guix build on May 16, 2020michaelfolkson commented at 4:02 pm on May 19, 2020: contributorConcept ACK. Seems like reasonable timing though I have no idea how many users this will affect and regardless it may be in the best interests of that small group of users anyway.MarcoFalke commented at 6:17 pm on May 19, 2020: memberthe binary will now refuse to run on unsupported versions of Windows, which, for us, is XP & Vista
Concpet ACK
fanquake commented at 2:15 am on May 20, 2020: memberSeems like reasonable timing though I have no idea how many users this will affect and regardless it may be in the best interests of that small group of users anyway.
If in another 6 months time (at the 0.21 release), there are a significant number of users who can now no-longer run Bitcoin Core, because (against our suggestion) they were running it on Windows XP or Vista, we can re-evaluate this change and likely our backwards compatibility requirements.
fanquake merged this on May 20, 2020fanquake closed this on May 20, 2020
fanquake deleted the branch on May 20, 2020sidhujag referenced this in commit e2622f4903 on May 20, 2020luke-jr referenced this in commit 43bd7c95d1 on Jun 9, 2020zkbot referenced this in commit 372f695d4d on Jun 5, 2021PastaPastaPasta referenced this in commit 91bb66dd79 on Jun 27, 2021PastaPastaPasta referenced this in commit e114164700 on Jun 28, 2021PastaPastaPasta referenced this in commit 4ddbc6ad71 on Jun 29, 2021PastaPastaPasta referenced this in commit 1135444f60 on Jul 1, 2021PastaPastaPasta referenced this in commit 038ba2444d on Jul 1, 2021PastaPastaPasta referenced this in commit c04e9ec315 on Sep 17, 2021PastaPastaPasta referenced this in commit 3d05d6dcf8 on Sep 19, 2021thelazier referenced this in commit 7acb8e3b00 on Sep 25, 2021DrahtBot locked this on Feb 15, 2022
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-24 00:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-24 00:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me