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

connect maven an autotools transparently #25

Open
judovana opened this issue Sep 8, 2021 · 3 comments · May be fixed by #27
Open

connect maven an autotools transparently #25

judovana opened this issue Sep 8, 2021 · 3 comments · May be fixed by #27

Comments

@judovana
Copy link
Collaborator

judovana commented Sep 8, 2021

The autotools are just better for native build
and maven is better for java build

My idea is to make both unverses to coopearte and reduce duplicated code.

  • The maven usecases is simple

    • the exec plugin will call configure and make exact target to compile the binary (and cross compiled binaries in future) instead of direct gcc call
    • the maven will build java, and use autotooled natives
  • auto tools use case

    • autotools build bianry
    • from autotools maven is called in profile, which do not build binary
    • as autotools saves the binary, the binary is correctly included in jar

Downstream will need to patch a bit to get rid of bundled binary and avoid cross compilation.

do I miss something? Ok to try?

@judovana
Copy link
Collaborator Author

judovana commented Sep 8, 2021

pls assign to me if possible

@judovana
Copy link
Collaborator Author

it is nice to hav efeedback. Have finished crosscompilation proof of concept,will include it like above

@judovana
Copy link
Collaborator Author

Hm. I run to some issues - it seems that current aautotools setup is unable to properly crosscrompile (can not find libcriu.so, even with #25 in)
@gnu-andrew Do youthink you can help with proper cross compilation support in your makefiles?

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 a pull request may close this issue.

1 participant