From 3d01336e8821312d240b273c62fa1257a7b48f43 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 28 Aug 2014 22:31:47 +0200 Subject: [PATCH] Fix library creation Delete library and create it from scratch to avoid problems with non-unique file names. --- Makefile | 1 + freebsd-to-rtems.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile b/Makefile index cf0c8b87..53e38b5b 100644 --- a/Makefile +++ b/Makefile @@ -1438,6 +1438,7 @@ D_FILES += $(LIB_C_FILES:%.c=%.d) all: $(LIB) $(TESTS) $(TEST_NETWORK_CONFIG) $(NET_TESTS) $(LIB): $(LIB_GEN_FILES) $(LIB_O_FILES) + rm -f $@ $(AR) rcu $@ $^ run_tests: $(RUN_TESTS) diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py index 394a621a..c77a534a 100755 --- a/freebsd-to-rtems.py +++ b/freebsd-to-rtems.py @@ -478,6 +478,7 @@ class ModuleManager: 'all: $(LIB) $(TESTS) $(TEST_NETWORK_CONFIG) $(NET_TESTS)\n' \ '\n' \ '$(LIB): $(LIB_GEN_FILES) $(LIB_O_FILES)\n' \ + '\trm -f $@\n' \ '\t$(AR) rcu $@ $^\n' \ '\n' \ 'run_tests: $(RUN_TESTS)\n' \