-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
Compiling with _FORTIFY_SOURCE
, which might standard in some distros, seems to break the compilation process with an error on libc's function vnsprintf()
.
The following patch can fix the compilation:
-set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -Wall")
-set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
+set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -U_FORTIFY_SOURCE -Wall")
+set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -U_FORTIFY_SOURCE -O3")
Might need more info as alpine uses musl
.
Setup:
Alpine 39
gcc (Alpine 8.3.0) 8.3.0
Metadata
Metadata
Assignees
Labels
No labels