Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to specify additional linker flags #1101

Closed
kristofdho opened this issue Jan 28, 2022 · 1 comment · Fixed by #1103, gluonhq/gluonfx-maven-plugin#414 or gluonhq/gluonfx-gradle-plugin#147
Labels
enhancement New feature or request

Comments

@kristofdho
Copy link
Contributor

I would like to add additional linker flags similar to what native-image allows with the -H:NativeLinkerOption flag.

Expected Behavior

  • extra flags are added to the linker command.
  • The option is also available in the maven plugin.

Current Behavior

linker command is pretty much predefined and does not allow external additions.

Context

I need to add extra exports to the produced executable, to work around this issue: #945
Alternative solution: create my own patched version of substrate which hardcodes my required flags.

@lilili87222
Copy link

lilili87222 commented Feb 22, 2022

<linkerArgs>
<list>awt.lib</list>
</linkerArgs>

add linker arg compile fail

BufferedImage targetBufferedImage = new BufferedImage(width, height, 5);

if not add linker arg ,this code run fail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants