vcgencmd: Apply ASLR
[platform/adaptation/broadcom/libomxil-vc4.git] / host_applications / linux / apps / gencmd / CMakeLists.txt
index f95d1a1..f1a1d32 100755 (executable)
@@ -7,13 +7,14 @@ else ()
    add_definitions(-Wall -Werror)
 endif ()
 
-include_directories( ../../../.. 
+include_directories( ../../../..
                      ../../../../interface/vcos
                      ../../../../interface/vcos/${VCOS_PLATFORM} )
 
 #add_subdirectory( ../../../../interface/vcos/${VCOS_PLATFORM} vcos)
 #add_subdirectory( ../../bin/gencmd)
 
+SET(CMAKE_EXE_LINKER_FLAGS "-pie")
 add_executable(vcgencmd gencmd.c)
 target_link_libraries(vcgencmd vcos vchiq_arm vchostif)
 install(TARGETS vcgencmd RUNTIME DESTINATION bin)