buildlib: supply -fPIC or -fpic if supportedmaster
commit9cc93ae2b58676c23fd02cf0c686fa15b7a3ff81
authorKyle J. McKay <mackyle@gmail.com>
Sat, 28 Oct 2017 05:59:16 +0000 (27 22:59 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 28 Oct 2017 05:59:16 +0000 (27 22:59 -0700)
tree13040bb6beafe0e62b1ef1f545b22c797ffa10ae
parentc524e1747f546e7b2c215e7a063699b11bb96685
buildlib: supply -fPIC or -fpic if supported

Although this is the "blocks" runtime support library,
it does not necessarily need to be built by a compiler
that supports the compilation of blocks.

It's possible that the runtime support library is being
built by a compiler that does not support or understand
either the -fPIC or the -fpic option.

For this reason be cautious and only add the option
(preferring -fPIC) if the compiler actually groks it.

Suggested-by: Ron Olson <rolson@lbpc.com>
Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
buildlib