Fix library creation

Delete library and create it from scratch to avoid problems with
non-unique file names.
This commit is contained in:
Sebastian Huber 2014-08-28 22:31:47 +02:00
parent 8e2e9b3e65
commit 3d01336e88
2 changed files with 2 additions and 0 deletions

View File

@ -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)

View File

@ -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' \