From 050d49a56bc54c78c3fc1f4f125b09634d6c5b83 Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 8 Nov 2018 15:41:46 +0900 Subject: Noise integration compiles --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 5abb56c..53724b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,7 +32,7 @@ set (ARCH_FLAGS "-mthumb -mcpu=cortex-m4 ${FP_FLAGS}" ) set (COMMON_FLAGS - "-O2 -g -Wextra -Wshadow -Wredundant-decls -fno-common -ffunction-sections -fdata-sections" + "-O2 -g -Wextra -Wshadow -Wredundant-decls -fno-common -ffunction-sections -fdata-sections --specs=nosys.specs" ) set (CMAKE_C_FLAGS @@ -57,7 +57,10 @@ set (CMAKE_EXE_LINKER_FLAGS "--static -nostartfiles -T${CMAKE_SOURCE_DIR}/libusbhost_stm32f4.ld -Wl,-Map=FIXME_ONE.map -Wl,--gc-sections -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group" ) -include_directories (${CMAKE_SOURCE_DIR}/include) +include_directories ( + ${CMAKE_SOURCE_DIR}/include + src/crypto/noise-c/include +) function (init_libopencm3) include_directories (${CMAKE_SOURCE_DIR}/libopencm3/include) -- cgit