fix cc: error: unrecognized command line option -no-pie
authorCarlos Neira <cneirabustos@gmail.com>
Fri, 9 Jun 2017 19:07:37 +0000 (15:07 -0400)
committerBrenden Blanco <bblanco@gmail.com>
Sat, 10 Jun 2017 15:20:27 +0000 (08:20 -0700)
commit9da21f9e4a84eb8006be597ce74389442e9b3c08
tree1dbb13b20ae9a2b28928e40195f67c10f518c1a7
parent8e9aaea07f1f108953c7b8c998f45ac209f7045b
fix cc: error: unrecognized command line option -no-pie

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