internal libgit2 fork built with debug configuration
Task Info (Flyspray) | |
---|---|
Opened By | Robert Cegliński (codicodi) |
Task ID | 67790 |
Type | Bug Report |
Project | Community Packages |
Category | Packages |
Version | None |
OS | All |
Opened | 2020-09-01 11:19:23 UTC |
Status | Unassigned |
Details
When compiling package, one encounters a wall of warnings like:
/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
This is because default configuration in CMakeLists.txt[1] is Debug and Arch's -O2 gets overriden with -O0. Attached patch fixes this issue by passing -DCMAKE_BUILD_TYPE=None to CMake invocation.
Package version: 1.12.0-3
[1] https://github.com/romkatv/libgit2/blob/master/CMakeLists.txt#L274-L276