diff options
author | Jerome Forissier <jerome.forissier@linaro.org> | 2015-09-22 18:02:47 -0700 |
---|---|---|
committer | Jerome Forissier <jerome.forissier@linaro.org> | 2015-09-23 17:44:01 -0700 |
commit | 4709340baed2090083d8422ca202235ec7d155bb (patch) | |
tree | 5db066fdb77cdfdfddfe86c8db0553eccff3456f /mk/lib.mk | |
parent | 11e18f1d1a1538fd6c7a38167eb450869ca2fe29 (diff) |
lib.mk: make sure archive file contains only specified objects
The recipe for archive (.a) files is updated so we won't try to append
objects to an existing archive left over from a previous build.
This fixes the following build error:
$ make -s PLATFORM=hikey
$ make -s PLATFORM=hikey CFG_ARM64_core=y \
CROSS_COMPILE_core=aarch64-linux-gnu-
[...]libtomcrypt.a: error adding symbols: File in wrong format
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
Diffstat (limited to 'mk/lib.mk')
-rw-r--r-- | mk/lib.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,7 @@ else $(lib-libfile): $(objs) @$(cmd-echo-silent) ' AR $$@' @mkdir -p $$(dir $$@) - $$(q)$$(AR$(sm)) rcs $$@ $$^ + $$(q)rm -f $$@ && $$(AR$(sm)) rcs $$@ $$^ endif endef #process-lib |