Skip to content

Commit 10d671d

Browse files
author
gabriel pettier
committed
add fPIE and pie options to task build commands
1 parent 80f3111 commit 10d671d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

recipes/task/CMakeLists.txt.patch

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,13 @@
1111
add_library (task STATIC ${task_SRCS})
1212
add_executable (task_executable main.cpp)
1313
add_executable (calc_executable calc.cpp)
14+
@@ -64,6 +64,9 @@
15+
set_property (TARGET calc_executable PROPERTY OUTPUT_NAME "calc")
16+
set_property (TARGET lex_executable PROPERTY OUTPUT_NAME "lex")
17+
18+
+set (CMAKE_CXX_FLAGS "-fPIE")
19+
+set (CMAKE_EXE_LINKER_FLAGS "-pie")
20+
+
21+
#SET(CMAKE_BUILD_TYPE gcov)
22+
#SET(CMAKE_CXX_FLAGS_GCOV "--coverage")
23+
#SET(CMAKE_C_FLAGS_GCOV "--coverage")

0 commit comments

Comments
 (0)