Skip to content

Conversation

@jfclere
Copy link
Contributor

@jfclere jfclere commented Jul 18, 2025

Add environment variables to build a static version of the executables.

Comment on lines +54 to +59
echo rem SPDX-License-Identifier: Apache-2.0> set_build_env.bat
echo set JAVA_HOME=%JAVA_HOME_21_X64%>> set_build_env.bat
echo set EXTRA_LFLAGS="/NODEFAULTLIB:libucrt.lib /DEFAULTLIB:ucrt.lib /HIGHENTROPYVA">> set_build_env.bat
echo set EXTRA_CFLAGS="/GS">> set_build_env.bat
echo set EXTRA_RCFLAGS="/nologo /d _WINNT /d WINVER=0x0A00 /d _WIN32_WINNT=0x0A00">> set_build_env.bat
call .\set_build_env.bat
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't a definition within env section work too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it didn't work for %JAVA_HOME_21_X64% so it is just adding a few lines to set_build_env.bat

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check these out, it should be working:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants