From ab3946c6801be3520beeb79f5500ed1a944d4667 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 14 Sep 2021 16:43:44 -0700 Subject: configure: Undefine __PIC__ QBE doesn't emit position-independent code, so we don't want __PIC__ defined if the preprocessor does by default. --- configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure b/configure index 1008e24..be7a95b 100755 --- a/configure +++ b/configure @@ -151,6 +151,9 @@ static const char *const preprocesscmd[] = { "-D", "__STDC_NO_VLA__", "-U", "__SIZEOF_INT128__", + /* we don't generate position-independent code */ + "-U", "__PIC__", + /* ignore attributes and extension markers */ "-D", "__attribute__(x)=", "-D", "__extension__=", -- cgit v1.2.3