diff --git a/src/libc/secure/CMakeLists.txt b/src/libc/secure/CMakeLists.txt index 6b95328d2..0a4b2765c 100644 --- a/src/libc/secure/CMakeLists.txt +++ b/src/libc/secure/CMakeLists.txt @@ -17,6 +17,10 @@ set(secure_sources stpncpy_chk.c strcat_chk.c strcpy_chk.c + strlcpy_chk.c + memccpy_chk.c + secure.c + strlcat_chk.c strncat_chk.c strncpy_chk.c vsnprintf_chk.c diff --git a/src/libinfo/CMakeLists.txt b/src/libinfo/CMakeLists.txt index 45ba6ff83..a9c056601 100644 --- a/src/libinfo/CMakeLists.txt +++ b/src/libinfo/CMakeLists.txt @@ -16,7 +16,7 @@ add_definitions(-D__APPLE__ -D__DYNAMIC__) add_definitions(-D__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1080) add_definitions(-Ddlopen=__darwin_dlopen -Ddlsym=__darwin_dlsym -Ddlclose=__darwin_dlclose) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc -D__DARWIN_UNIX03 -fPIC -w") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc -D__DARWIN_UNIX03 -fPIC -w -ggdb") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib -Wl,--unresolved-symbols=ignore-all -Wl,--version-script=${DARLING_TOP_DIRECTORY}/darwin.map") add_subdirectory(gen.subproj)