bcc-lua: --no-pie, not -no-pie
authorMark Drayton <mbd@fb.com>
Fri, 18 Aug 2017 17:28:48 +0000 (18:28 +0100)
committerBrenden Blanco <bblanco@gmail.com>
Sun, 20 Aug 2017 14:58:20 +0000 (07:58 -0700)
commit007d28c534e1a98e6017ac9f4c8cb1c0f5244388
tree4a30caef2beca755409adcabd700108d6e62f54d
parenteb819caf39b399dece89c75d227eb6e48b78d9c7
bcc-lua: --no-pie, not -no-pie

Some versions of GCC don't accept `-no-pie`. For instance, on a GCC 5 build I
have here:

```
$ gcc -no-pie
gcc: error: unrecognized command line option ‘-no-pie’
gcc: fatal error: no input files
```

5.4 from Xenial will take `-no-pie`, as will versions of 4, 6 and 7 that I
tried. The issue may be related to
https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg170818.html but I'm not
certain.

A workaround for this is to use `--no-pie`, which is accepted by all versions
of GCC 4, 5, 6 and 7 that I tried.
src/lua/CMakeLists.txt