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

Letting dep_codecs/build.sh inherit C[XX]FLAGS content #126

Merged

Conversation

agosdahu
Copy link
Contributor

CMAKE_C_FLAGS in cmake cache - if not pre-defined - is initialised using environment variables in combination with builtin defaults for the toolchain If it is passed as an argument to the cmake configuration command, only the defined values will be cached. Inheriting flags (e.g. optimisation options) from environment variables is not possible in this configuration Passing the "-fPIC" flag however can also be done without affecting CFLAGS inheritance via setting the CMAKE_POSITION_INDEPENDENT_CODE cmake variable

CMAKE_C_FLAGS in cmake cache - if not pre-defined - is initialised using environment variables in combination with builtin defaults for the toolchain
If it is passed as an argument to the cmake configuration command, only the defined values will be cached.
Inheriting flags (e.g. optimisation options) from environment variables is not possible in this configuration
Passing the "-fPIC" flag however can also be done without affecting CFLAGS inheritance via setting the CMAKE_POSITION_INDEPENDENT_CODE cmake variable
Copy link

@DanielKristofKiss DanielKristofKiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jwcullen
Copy link
Collaborator

jwcullen commented Oct 22, 2024

@yilun-zhangs or @yongmin-kwon, Any complaints?

Otherwise this PR looks good to me. It seems this a more standard way to set the PIC flag for these libraries. Also it does not break the GitHub CI builds.

Copy link
Collaborator

@yilun-zhangs yilun-zhangs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me

@yilun-zhangs yilun-zhangs merged commit dceb251 into AOMediaCodec:main Oct 29, 2024
3 checks passed
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.

4 participants