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

Makefile: Cleanup compiler and linker flags #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mniestroj
Copy link

Cleanup compiler and linker flags, so the library can be easily
cross-compiled by overwriting CPPFLAGS, CXXFLAGS and LDFLAGS:

  • Rename CPP into CXX, as we use this command for compiling, not
    preprocessing.
  • Remove separate LD usage, use CXX instead. This is to still launch
    compiler command when user overrides CXX and LD commands.
  • Define MY_CXXFLAGS and MY_LDFLAGS, which should always take place and
    not get overridden by user.
  • Define AR command, which can be overidden by user.

Cleanup compiler and linker flags, so the library can be easily
cross-compiled by overwriting CPPFLAGS, CXXFLAGS and LDFLAGS:

* Rename CPP into CXX, as we use this command for compiling, not
  preprocessing.
* Remove separate LD usage, use CXX instead. This is to still launch
  compiler command when user overrides CXX and LD commands.
* Define MY_CXXFLAGS and MY_LDFLAGS, which should always take place and
  not get overridden by user.
* Define AR command, which can be overidden by user.
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