aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-09-27 18:19:21 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-09-27 18:19:21 -0400
commitce0e7940926ec4c4eeb95e2d5b67554de3863a56 (patch)
tree7d53a374b7bd3266d33f175b9736d5665a566901 /src/link.cpp
parent579301c2afc28137e67d5e6c894fe7970519ed3d (diff)
downloadzig-ce0e7940926ec4c4eeb95e2d5b67554de3863a56.tar.gz
zig-ce0e7940926ec4c4eeb95e2d5b67554de3863a56.zip
fix glibc builds on aarch64-linux-gnu
There was a missing include path in the compilation line, leading to incorrect fstat ABI. closes #3291
Diffstat (limited to 'src/link.cpp')
-rw-r--r--src/link.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/link.cpp b/src/link.cpp
index 41fb2ca415..d33ab10ebf 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -822,6 +822,10 @@ static void glibc_add_include_dirs(CodeGen *parent, CFile *c_file) {
if (parent->zig_target->os == OsLinux) {
c_file->args.append("-I");
c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "sysdeps" OS_SEP
+ "unix" OS_SEP "sysv" OS_SEP "linux" OS_SEP "generic"));
+
+ c_file->args.append("-I");
+ c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "sysdeps" OS_SEP
"unix" OS_SEP "sysv" OS_SEP "linux" OS_SEP "include"));
c_file->args.append("-I");
c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "sysdeps" OS_SEP