diff options
author | Michael Forney <mforney@mforney.org> | 2021-09-14 16:43:44 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2021-09-14 16:44:45 -0700 |
commit | ab3946c6801be3520beeb79f5500ed1a944d4667 (patch) | |
tree | 338d331556ce0e4a3cb4458f3714e35d74ea13a6 | |
parent | 49ebef5d0092366fd0639c78b61a066646ac218e (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-x | configure | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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__=", |