diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-04-11 12:12:49 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-04-16 13:37:52 +0300 |
commit | b908403e0dbcb1b9d972ff9cfed48adb6a6214a3 (patch) | |
tree | cdb1106f3e931695a57eaadcd63ed287f2c87c28 | |
parent | 9b1865f6918057e6600ff6b455bb8486a016fce1 (diff) | |
download | libmicrohttpd-b908403e0dbcb1b9d972ff9cfed48adb6a6214a3.tar.gz libmicrohttpd-b908403e0dbcb1b9d972ff9cfed48adb6a6214a3.zip |
configure: set minimal supported OS version in W32 binaries
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c497145e..cbafd7d9 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -876,6 +876,16 @@ int main(void) | |||
876 | AC_SUBST([W32CRT], [MSVCRT]) | 876 | AC_SUBST([W32CRT], [MSVCRT]) |
877 | ], [AC_SUBST([W32CRT], [UCRT])] | 877 | ], [AC_SUBST([W32CRT], [UCRT])] |
878 | ) | 878 | ) |
879 | |||
880 | CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" | ||
881 | LDFLAGS="${user_LDFLAGS}" | ||
882 | AS_CASE([$mhd_w32_ver], | ||
883 | [WinXP], | ||
884 | [MHD_CHECK_ADD_CC_LDFLAG([-Wl,--major-subsystem-version,5,--minor-subsystem-version,1],[LDFLAGS_ac])], | ||
885 | [Vista], | ||
886 | [MHD_CHECK_ADD_CC_LDFLAG([-Wl,--major-subsystem-version,6,--minor-subsystem-version,0],[LDFLAGS_ac])] | ||
887 | ) | ||
888 | LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" | ||
879 | ] | 889 | ] |
880 | ) | 890 | ) |
881 | CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" | 891 | CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |