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

Fix build system to work on Red Hat-based systems #68

Merged
merged 2 commits into from
May 20, 2022
Merged

Conversation

lwthiker
Copy link
Owner

Tweak the curl-impersonate build system to make it work on Red Hat
based systems such as CentOS, Fedora and Amazon Linux.

  • Change the Makefile to be more portable with different bash versions.
  • Detect whether cmake is 'cmake' or 'cmake3', and whether ninja is
    'ninja' or 'ninja-build'.
  • Explicitly tell brotli to put its libraries in 'lib' dir, otherwise it
    might put them in 'lib64' where curl doesn't find them.
  • Add instructions for building curl-impersonate from source on Red Hat
    based systems.

lwthiker added 2 commits May 20, 2022 15:52
Tweak the curl-impersonate build system to make it work on Red Hat
based systems such as CentOS, Fedora and Amazon Linux.

* Change the Makefile to be more portable with different bash versions.
* Detect whether cmake is 'cmake' or 'cmake3', and whether ninja is
'ninja' or 'ninja-build'.
* Explicitly tell brotli to put its libraries in 'lib' dir, otherwise it
might put them in 'lib64' where curl doesn't find them.
* Add instructions for building curl-impersonate from source on Red Hat
based systems.
* Add compiler flags to the boringssl build step to suppress gcc errors
raised when compiling with gcc 12+, which is present in Fedora. It is not
clear whether this is a compiler bug or a boringssl bug, however the
errors only appear when building in release mode and with gcc 12, so I
don't see any problem with manually supressing them.
* Add documentation for building on Fedora.
@lwthiker
Copy link
Owner Author

Solves #58

@lwthiker lwthiker linked an issue May 20, 2022 that may be closed by this pull request
@lwthiker lwthiker merged commit 75e8bb1 into main May 20, 2022
@lwthiker lwthiker deleted the redhat_based branch May 20, 2022 15:03
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.

support build on Amazon Linux(or centos, redhat linux)
1 participant