From 77590b31a6d3c8cb1af3146201929408bf2c24e6 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Sun, 6 Aug 2023 10:46:45 -0700 Subject: [PATCH] [build] Remove unneeded lib options Remove the `-lc++`, `-lc++abi`, and `-lunwind` options from the user target, where they should be handled automatically. (ie, we're not using `-nostdlib` or its bretheren.) --- assets/build/target.user.exe.yaml | 1 + assets/build/target.user.yaml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/build/target.user.exe.yaml b/assets/build/target.user.exe.yaml index 1109b89..151b531 100644 --- a/assets/build/target.user.exe.yaml +++ b/assets/build/target.user.exe.yaml @@ -6,4 +6,5 @@ ccflags: [ ldflags: [ "-pie", "--dynamic-linker", "/tools/ld.so", + "-lc++", "-lc++abi", "-lunwind", ] diff --git a/assets/build/target.user.yaml b/assets/build/target.user.yaml index e5af4f0..b385a76 100644 --- a/assets/build/target.user.yaml +++ b/assets/build/target.user.yaml @@ -31,7 +31,6 @@ ldflags: [ "--no-eh-frame-hdr", "-L", "${source_root}/sysroot/lib", "-z", "separate-code", - "-lc++", "-lc++abi", "-lunwind", "--no-dependent-libraries", ]