aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2016-08-20 14:20:16 +0200
committerAlex Auvolat <alex@adnab.me>2016-08-20 14:20:16 +0200
commitf9e728e76a3bfd006877c64713cb6a4831f747af (patch)
tree2baaae02aef0344192a81f7e91aa65374bd93f38
parent2f34f0694f953fd00d2885b86634bbd618852fed (diff)
downloadkogata-f9e728e76a3bfd006877c64713cb6a4831f747af.tar.gz
kogata-f9e728e76a3bfd006877c64713cb6a4831f747af.zip
BAM change
-rw-r--r--bam.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/bam.lua b/bam.lua
index d9721f1..95e5bc1 100644
--- a/bam.lua
+++ b/bam.lua
@@ -131,11 +131,10 @@ local dev_cdrom = cdrom("dev", dev_settings)
local rel_settings = TableDeepCopy(base_settings)
for _, s in pairs(rel_settings) do
s.cc.flags:Add("-Os", "-flto")
- s.link.flags:Add("-Os", "-flto")
+ s.link.flags:Add("-Os", "-flto", "-Wl,--gc-sections")
- -- Maybee
+ -- Maybe do this, goes with --gc-sections
-- s.cc.flags:Add("-ffunction-sections", "-fdata-sections")
- -- s.link.flags:Add("-Wl,--gc-sections")
end
local rel_cdrom = cdrom("rel", rel_settings)