In rare occasions during development when e.g. a missing symbol caused
the linker process to abort, the joined library was not removed
at the end of the build. In subsequent builds this possibly
caused problems during creation of the joined library as a
static library cannot be updated but must be removed and re-created.
This change solves the described problem by removing a possibly
pre-exising joined library before the link.
This is tested to work on Windows and Linux. Only the Windows part actually changed, so macOS should be fine, too.
In rare occasions during development when e.g. a missing symbol caused the linker process to abort, the joined library was not removed at the end of the build. In subsequent builds this possibly caused problems during creation of the joined library as a static library cannot be updated but must be removed and re-created.
This change solves the described problem by removing a possibly pre-exising joined library before the link.
This is tested to work on Windows and Linux. Only the Windows part actually changed, so macOS should be fine, too.
Signed-off-by: Florian Fleissner florian.fleissner@inpartik.de