Add clang check for -nopie option
authorBrenden Blanco <bblanco@gmail.com>
Fri, 11 Aug 2017 15:00:14 +0000 (08:00 -0700)
committerBrenden Blanco <bblanco@gmail.com>
Tue, 15 Aug 2017 16:23:33 +0000 (09:23 -0700)
commita2afe8d39d62daf5a404887c1514d8454c031d5e
tree0759b442f0ae37936034b87f3f7b319eef038af3
parent8e26b4916da5efd500eaed0fe5159c8cc8f981bf
Add clang check for -nopie option

The -no-pie option is not available in clang until 6.0. Per the
documentation, -nopie serves the same purpose as -no-pie (but not
-fno-pie). Hence, use the -nopie option when clang is in use as the CC.

Fixes: #1237
Signed-off-by: Brenden Blanco <bblanco@gmail.com>
src/lua/CMakeLists.txt