Commit c2c5318f authored by Matthias Braun's avatar Matthias Braun
Browse files

change AR flags

Previously we had an AR commandline that replaced old object files with newer
ones in the archive. This however fails when we remove files from the
project, because the previous objects in the archive were not removed
(and often caused missing symbol errors when linking later).
So now I remove the archive each time before creating it, to make up for
the speed loss use the "thin archive" option. This is not a good idea
for a release/installed version of libfirm, but for that we still use
the automake build anyway.
parent bf6e0662
......@@ -136,7 +136,8 @@ ir/ir/irio.c : $(gendir)/ir/ir/gen_irio.c.inl
$(libfirm_a): $(libfirm_OBJECTS)
@echo AR $@
$(Q)$(AR) -crsu $@ $^
$(Q)rm -f $@
$(Q)$(AR) -Tcrsu $@ $^
$(libfirm_dll): $(libfirm_OBJECTS)
@echo LINK $@
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment