[FEATURE] CMake build system should propagate CMAKE_C_FLAGS to more third-party dependencies #1652
InspectorConstructor
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The CMAKE_C_FLAGS aren't propagated to all third-party libraries. This makes it impossible to optimize the build for specific architectures without
patch
-ing files. I would like to use this variable to pass platform-specific flags (specifically-mcpu
,-mfpu
,-ffunction-sections
,-fdata-sections
, and-Os
.)All CMake-based dependencies can simply forward the flags with
-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
, and I believe that openssl's configure command can accept C flags as bare arguments.and for openssl:
Beta Was this translation helpful? Give feedback.
All reactions