From 9da21f9e4a84eb8006be597ce74389442e9b3c08 Mon Sep 17 00:00:00 2001 From: Carlos Neira Date: Fri, 9 Jun 2017 15:07:37 -0400 Subject: [PATCH] fix cc: error: unrecognized command line option -no-pie MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cnb@ubuntu-14:~/iovisor/bcc/build$ make [ 6%] Built target clang_frontend [ 9%] Built target bpf-static [ 16%] Built target bcc-loader-static [ 30%] Built target b_frontend [ 47%] Built target bcc-static [ 48%] Built target CPUDistribution [ 50%] Built target FollyRequestContextSwitch [ 51%] Built target HelloWorld [ 52%] Built target LLCStat [ 54%] Built target RandomRead [ 55%] Built target RecordMySQLQuery [ 56%] Built target TCPSendStack [ 80%] Built target bcc-shared [ 83%] Built target bpf-shared [ 84%] Built target bcc_py Linking C executable bcc-lua cc: error: unrecognized command line option â-no-pieâ make[2]: *** [src/lua/bcc-lua] Error 1 make[1]: *** [src/lua/CMakeFiles/bcc-lua.dir/all] Error option is called -fno-pie --- src/lua/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/CMakeLists.txt b/src/lua/CMakeLists.txt index 6ad0e874f4cf..28dc67969875 100644 --- a/src/lua/CMakeLists.txt +++ b/src/lua/CMakeLists.txt @@ -24,7 +24,7 @@ if (LUAJIT_LIBRARIES AND LUAJIT) set_target_properties(bcc-lua PROPERTIES LINKER_LANGUAGE C) target_link_libraries(bcc-lua ${LUAJIT_LIBRARIES}) target_link_libraries(bcc-lua -Wl,--whole-archive bcc-static -Wl,--no-whole-archive) - target_link_libraries(bcc-lua -no-pie) + target_link_libraries(bcc-lua -fno-pie) install(TARGETS bcc-lua RUNTIME DESTINATION bin) endif()