Skip to content

Commit a4e39ef

Browse files
author
gabriel pettier
committed
tentative fix of task build
1 parent 343fba8 commit a4e39ef

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

recipes/task/CMakeLists.txt.patch

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
set_property (TARGET calc_executable PROPERTY OUTPUT_NAME "calc")
1616
set_property (TARGET lex_executable PROPERTY OUTPUT_NAME "lex")
1717

18-
+set (CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -fPIE)
19-
+set (CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} -pie)
20-
+
2118
#SET(CMAKE_BUILD_TYPE gcov)
2219
#SET(CMAKE_CXX_FLAGS_GCOV "--coverage")
2320
#SET(CMAKE_C_FLAGS_GCOV "--coverage")

recipes/task/recipe.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ function build_task() {
4343
cmake -DCMAKE_TOOLCHAIN_FILE=android-cmake/android.toolchain.cmake \
4444
-DUUID_INCLUDE_DIR=$BUILD_libuuid/build/include \
4545
-DUUID_LIBRARY=$BUILD_libuuid/build/lib/libuuid.a \
46+
-DCMAKE_CXX_FLAGS="-fPIE" \
47+
-DCMAKE_EXE_LINKER_FLAGS="-pie" \
4648
-DANDROID_NDK=$ANDROIDNDK \
4749
-DCMAKE_BUILD_TYPE=Release \
4850
-DANDROID_ABI="armeabi-v7a with NEON" \

0 commit comments

Comments
 (0)