build: make sure asm gets built with -DPIC
authorPhilip Prindeville <philipp@redfish-solutions.com>
Fri, 19 Mar 2021 21:09:45 +0000 (15:09 -0600)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Wed, 24 Mar 2021 23:47:34 +0000 (23:47 +0000)
commitaf22991e03cae55f96b06996df2ff16752cec5d5
treeb560cedc16543e766135ce1f694421c0c2077c77
parent1bf2b3fe90347641c87ca754913a4857a387478c
build: make sure asm gets built with -DPIC

Fixes issue openwrt/packages#14921, whereby inline ASM wasn't getting
built as PIC; look at gmp-6.2.1/mpn/x86/pentium/popcount.asm for
example:

ifdef(`PIC',`
...

for a routine that exists in both PIC and non-PIC versions.

Make sure that wherever $(FPIC) gets passed as a variable expansion
that it gets quoted where necessary (such as setting environment
variables in shell commands).

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
rules.mk