Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Description: build: Set soabi for the combined shared library
- Currently the build for the combined shared library does not set
- any ABI version. Since this deviates from upstream we start with
- version 0.
- Probably it would be ok if upstream kept individual ABI versions
- for each individual library. Then the combined one would have to
- be incremented whenever any of those changes version.
- Though to me it would feel more logical if there would be only
- one ABI version for the whole set.
- Forwarded: Not yet. Needs discussion about library versioning.
- Author: Stefan Bader <[email protected]>
- Last-Update: 2015-08-12
- Index: dpdk-2.0.0/mk/rte.sharelib.mk
- ===================================================================
- --- dpdk-2.0.0.orig/mk/rte.sharelib.mk 2015-04-03 16:13:45.000000000 +0200
- +++ dpdk-2.0.0/mk/rte.sharelib.mk 2015-06-12 10:34:56.901804534 +0200
- @@ -33,10 +33,12 @@ include $(RTE_SDK)/mk/internal/rte.build
- # VPATH contains at least SRCDIR
- VPATH += $(SRCDIR)
- +# The shared libs abi number.
- +LIBABIVER := 0
- ifeq ($(RTE_BUILD_COMBINE_LIBS),y)
- ifeq ($(RTE_BUILD_SHARED_LIB),y)
- -LIB_ONE := lib$(RTE_LIBNAME).so
- +LIB_ONE := lib$(RTE_LIBNAME).so.$(LIBABIVER)
- else
- LIB_ONE := lib$(RTE_LIBNAME).a
- endif
- @@ -51,10 +53,10 @@ ifeq ($(LINK_USING_CC),1)
- # Override the definition of LD here, since we're linking with CC
- LD := $(CC) $(CPU_CFLAGS)
- O_TO_S = $(LD) $(call linkerprefix,$(CPU_LDFLAGS)) \
- - -shared $(OBJS) -o $(RTE_OUTPUT)/lib/$(LIB_ONE)
- + -shared $(OBJS) -Wl,-soname,$(LIB_ONE) -o $(RTE_OUTPUT)/lib/$(LIB_ONE)
- else
- O_TO_S = $(LD) $(CPU_LDFLAGS) \
- - -shared $(OBJS) -o $(RTE_OUTPUT)/lib/$(LIB_ONE)
- + -shared $(OBJS) -Wl,-soname,$(LIB_ONE) -o $(RTE_OUTPUT)/lib/$(LIB_ONE)
- endif
- O_TO_S_STR = $(subst ','\'',$(O_TO_S)) #'# fix syntax highlight
- @@ -80,6 +82,8 @@ ifeq ($(RTE_BUILD_SHARED_LIB),y)
- $(LIB_ONE): FORCE
- @[ -d $(dir $@) ] || mkdir -p $(dir $@)
- $(O_TO_S_DO)
- + @[ -L $(RTE_OUTPUT)/lib/$(basename $(LIB_ONE)) ] || \
- + ln -s $(LIB_ONE) $(RTE_OUTPUT)/lib/$(basename $(LIB_ONE))
- else
- $(LIB_ONE): FORCE
- @[ -d $(dir $@) ] || mkdir -p $(dir $@)
Advertisement
Add Comment
Please, Sign In to add comment