Skip to content
Snippets Groups Projects
Commit 977db780 authored by Yalu Zhang's avatar Yalu Zhang
Browse files

Generate the static library which is required by libdsl

parent ff1956b0
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,7 @@ define build_libs
$(foreach oname,$(if $($(notdir $(1))_sources),$($(notdir $(1))_sources),$(dir $(1))$(patsubst lib%.so,%.c,$(notdir $(1)))),$(eval $(call build_objs,$(1),$(oname),-fPIC)))
$(1): $(if $($(notdir $(1))_sources),$(patsubst %.c,%_$(notdir $(1)).o,$($(notdir $(1))_sources)),$(dir $(1))$(patsubst lib%.so,%_$(notdir $(1)).o,$(notdir $(1))))
$(CC) -shared -fPIC -Wl,-soname,$(notdir $(1)) -o $$@ $$^ $(LDFLAGS) $($(notdir $(1))_ldflags) $(if $(opt_strip),$(if $(STRIP),&& $(STRIP) $$@))
$(AR) cru libhelper.a $$^ && $(RANLIB) libhelper.a
endef
# Generate final Lib Archives
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment