aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2020-06-04 01:36:28 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2020-06-10 11:41:25 -0700
commit481b23ed3c5ca5823b0ab5dd74af588b123fa26e (patch)
treee05df53c6796f17e636f2dde5460a02e69bafb1e /Makefile.in
parent4ae7271b61a124b2227594ebec8f95a3e853c4d1 (diff)
downloadspike-481b23ed3c5ca5823b0ab5dd74af588b123fa26e.zip
spike-481b23ed3c5ca5823b0ab5dd74af588b123fa26e.tar.gz
spike-481b23ed3c5ca5823b0ab5dd74af588b123fa26e.tar.bz2
ext: build libriscv PIC to make it linkable to ext library
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 154a6fd..17a2bd5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -242,7 +242,7 @@ $(2)_lib_libnames_shared := $$(if $$($(2)_install_shared_lib),lib$(1).so,)
lib$(1).a : $$($(2)_objs) $$($(2)_c_objs) $$($(2)_lib_libnames)
$(AR) rcs $$@ $$^
-lib$(1).so : $$($(2)_objs) $$($(2)_c_objs) $$($(2)_lib_libnames_shared)
+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)
$(2)_junk += lib$(1).a