Browse Source
Merge pull request #1193 from riscv-software-src/fix-build-nondeterminism
Fix build nondeterminism by deleting archives before recreating
pull/1195/head
Andrew Waterman
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
Makefile.in
|
|
|
@ -242,6 +242,7 @@ $(2)_lib_libarg := $$(patsubst %, -l%, $$($(2)_lib_libs)) |
|
|
|
$(2)_lib_libnames_shared := $$(if $$($(2)_install_shared_lib),lib$(1).so,) |
|
|
|
|
|
|
|
lib$(1).a : $$($(2)_objs) $$($(2)_c_objs) |
|
|
|
rm -f $$@ |
|
|
|
$(AR) rcs $$@ $$^ |
|
|
|
lib$(1).so : $$($(2)_objs) $$($(2)_c_objs) $$($(2)_lib_libnames_shared) $$($(2)_lib_libnames) |
|
|
|
$(LINK) -shared -o $$@ $(if $(filter Darwin,$(shell uname -s)),-install_name $(install_libs_dir)/$$@) $$^ $$($(2)_lib_libnames) $(LIBS) |
|
|
|
|