From 344c104ceb6fdcfc06205e8552b4b1783710043d Mon Sep 17 00:00:00 2001 From: Ali Mashtizadeh Date: Sun, 10 Sep 2023 20:56:49 -0400 Subject: [PATCH] Use triple to fix the abi issues --- SConstruct | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 4bb873a..19e9d00 100644 --- a/SConstruct +++ b/SConstruct @@ -49,8 +49,10 @@ if 'LDFLAGS' in os.environ: env.Append(LINKFLAGS = SCons.Util.CLVar(os.environ['LDFLAGS'])) env.Append(CFLAGS = [ "-Wshadow", "-Wno-typedef-redefinition" ]) -env.Append(CPPFLAGS = [ "-fno-builtin", "-fno-stack-protector", +env.Append(CPPFLAGS = [ "-target", "x86_64-freebsd-freebsd-elf", + "-fno-builtin", "-fno-stack-protector", "-fno-optimize-sibling-calls" ]) +env.Append(LINKFLAGS = [ "-no-pie" ]) if (env["STRICT"] == "1"): env.Append(CPPFLAGS = [ "-Wformat=2", "-Wmissing-format-attribute",