build: Makefile not support multiple thread build [1/1]
PD#SWPL-177960
Problem:
$(CLIENT_LIB): $(OBJ_CLIENT_LIB)
$(CXX) -o $(OUT_DIR)/$@ $(patsubst %, $(OUT_DIR)/%, $^)
$(LD_FLAG_LIB)
cp -f $(OUT_DIR)/$(CLIENT_LIB) $(STAGING_DIR)/usr/lib
rm -f $(patsubst %, $(OUT_DIR)/%, $(OBJ_CLIENT_LIB))
The cxx, cp and rm will run in 3 threads without dependency
so cxx need some .h file, but it was randomly deleted
Solution:
cp should be moved to install stage
rm should be moved to clean stage
Verify:
local
Signed-off-by: guoping.li <guoping.li@amlogic.com>
Change-Id: I85feb840fac6cd993ee4bfe56ae71dd35606dbd0
1 file changed