aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-09-14 16:43:44 -0700
committerMichael Forney <mforney@mforney.org>2021-09-14 16:44:45 -0700
commitab3946c6801be3520beeb79f5500ed1a944d4667 (patch)
tree338d331556ce0e4a3cb4458f3714e35d74ea13a6
parent49ebef5d0092366fd0639c78b61a066646ac218e (diff)
configure: Undefine __PIC__
QBE doesn't emit position-independent code, so we don't want __PIC__ defined if the preprocessor does by default.
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
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__=",