authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-12-14 18:51:02+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-12-15 14:53:46-05:00
log5f7352b5b59e69744fc176d7abc7b0a319e7afcb
tree166af87f84b61a8a98df82914f0cbce7fc9219f9
parent96e3222796df6124a54b1261936d8262b660fbf4

stage2: Add -include libc-symbols.h when building crtn.S

This -include is added for nearly every file in glibc's makefiles.

1 files changed, 2 insertions(+), 0 deletions(-)

src/glibc.zig+2
...@@ -287,6 +287,8 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile) !void {...@@ -287,6 +287,8 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile) !void {
287 try args.appendSlice(&[_][]const u8{287 try args.appendSlice(&[_][]const u8{
288 "-D_LIBC_REENTRANT",288 "-D_LIBC_REENTRANT",
289 "-DMODULE_NAME=libc",289 "-DMODULE_NAME=libc",
290 "-include",
291 try lib_path(comp, arena, lib_libc_glibc ++ "include" ++ path.sep_str ++ "libc-symbols.h"),
290 "-DTOP_NAMESPACE=glibc",292 "-DTOP_NAMESPACE=glibc",
291 "-DASSEMBLER",293 "-DASSEMBLER",
292 "-g",294 "-g",