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

Update CRF++ build for 2024 #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

chishm
Copy link

@chishm chishm commented Sep 13, 2024

Hi,

The aim of this PR is to update the build process of CRF++. The first step of this is to run autoreconf when building the docker image so that a newer configure script is used. This avoids having to explicitly set the build architecture for ARM64 builds, since the newer configure can successfully detect the arch on its own.

Next up I've removed the existing files generated by an old autotools version. They're obsolete, and not needed in the Git repo. I've added instructions to README.md on how to properly generate a source tarball, for people that want to go with the old tar xzf && ./configure && make && make install approach.

Finally, I've also specified the C and C++ standards for GCC to target. This avoids compilation warnings about using the register keyword. I chose standards to match what GCC 3.0 supports, which is specified in the original installation instructions.

Please let me know if there's anything more to do before this can be merged.

* Run autoreconf when building to use the updated autotools
* Clean up configure.ac to replace obsolete macros
* Use multi-stage docker build for smaller final container
* Prevent compilation warnings for deprecated features in newer C++
  dialects
Generated files should not be in source control. Instead they are included
in source tarballs generated from source control by Make.
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.

1 participant