Add PIC_CFLAGS to the libr_syscall %.sdb rule

To fix linking on recent GNU toolchains, e.g. on Fedora 36.
This commit is contained in:
Ole André Vadla Ravnås 2022-05-12 19:35:47 +02:00 committed by pancake
parent 6fb29212fe
commit ac40d4b029

View File

@ -51,7 +51,7 @@ else
endif endif
test -f $@ test -f $@
${SDB} -t -C $@ ${SDB} -t -C $@
$(CC) $(CFLAGS) -c `echo $@ | sed -e s,sdb,c,` $(CC) $(CFLAGS) $(PIC_CFLAGS) -c `echo $@ | sed -e s,sdb,c,`
clean: clean:
rm -f *.sdb rm -f *.sdb