Skip to content

Commit 540df2c

Browse files
authored
Update build.vars
Enable Windows only vars for only Windows builds
1 parent be29cd5 commit 540df2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

generic/build.vars

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ EXTRA_OPENSSL_CONFIG="${EXTRA_OPENSSL_CONFIG:--static-libgcc}" # uncomment if op
4141
#EXTRA_PKCS11_HELPER_CONFIG
4242
#EXTRA_OPENVPN_CONFIG
4343

44-
EXTRA_TARGET_CFLAGS="-Wl,--dynamicbase,--nxcompat"
44+
case "${CHOST}" in
45+
*mingw*) EXTRA_TARGET_CFLAGS="-Wl,--dynamicbase,--nxcompat";;
46+
esac
4547

4648
# You can enable --high-entropy-va for 64-bit builds if you have recent enough
4749
# mingw-w64

0 commit comments

Comments
 (0)