Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
libcxl
libcxl_add_soname_in_Makefile.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libcxl_add_soname_in_Makefile.patch of Package libcxl
From: Michel Normand <normand@linux.vnet.ibm.com> Subject: libcxl add soname in Makefile Date: Tue, 19 Jan 2016 11:42:35 +0100 libcxl add soname in Makefile Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com> --- Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) Index: libcxl-1.3/Makefile =================================================================== --- libcxl-1.3.orig/Makefile +++ libcxl-1.3/Makefile @@ -3,8 +3,17 @@ include Makefile.vars OBJS = libcxl.o libcxl_sysfs.o CFLAGS += -I include +ifdef VERS_LIB +LIBNAME = libcxl.so.$(VERS_LIB) +else +LIBNAME = libcxl.so +endif +ifdef VERS_SONAME +LIBSONAME = libcxl.so.$(VERS_SONAME) +SONAMEOPT = -Wl,-soname,$(LIBSONAME) +endif -all: check_cxl_header libcxl.so libcxl.a +all: check_cxl_header $(LIBNAME) libcxl.a HAS_WGET = $(shell /bin/which wget > /dev/null 2>&1 && echo y || echo n) HAS_CURL = $(shell /bin/which curl > /dev/null 2>&1 && echo y || echo n) @@ -27,8 +36,8 @@ endif libcxl.o libcxl_sysfs.o : CFLAGS += -fPIC -libcxl.so: libcxl.o libcxl_sysfs.o symver.map - $(call Q,CC, $(CC) $(CFLAGS) -shared libcxl.o libcxl_sysfs.o -o libcxl.so, libcxl.so) -Wl,--version-script symver.map +$(LIBNAME): libcxl.o libcxl_sysfs.o symver.map + $(call Q,CC, $(CC) $(CFLAGS) -shared libcxl.o libcxl_sysfs.o -o $(LIBNAME), $(LIBNAME)) -Wl,--version-script symver.map $(SONAMEOPT) libcxl.a: libcxl.o libcxl_sysfs.o $(call Q,AR, ar rcs libcxl.a libcxl.o libcxl_sysfs.o, libcxl.a)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor