Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Update
intel-cmt-cat
fix-dynlib-generation.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-dynlib-generation.patch of Package intel-cmt-cat
diff --git a/lib/Makefile b/lib/Makefile index 02a72cf..1a1f9eb 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -36,6 +36,7 @@ LIB = libpqos VERSION = 0.1.6 +SO_VERSION = 0 SHARED ?= y LDFLAGS = -L. -lpthread -fPIE -z noexecstack -z relro -z now CFLAGS = -pthread -I./ -D_GNU_SOURCE \ @@ -59,7 +60,7 @@ endif # so or static build ifeq ($(SHARED),y) CFLAGS += -fPIC -LIBNAME = $(LIB)-$(VERSION).so +LIBNAME = $(LIB).so.$(VERSION) LIBPERM = 0755 else CFLAGS += -fPIE @@ -92,7 +93,7 @@ endif HDR = pqos.h PREFIX ?= /usr/local -LIBDIR ?= $(PREFIX)/lib +LIB_INSTALL_DIR ?= $(PREFIX)/lib HDR_DIR ?= $(PREFIX)/include DEPFILE = $(LIB).dep @@ -100,9 +101,9 @@ all: $(LIBNAME) $(LIBNAME): $(OBJS) ifeq ($(SHARED),y) - $(CC) -shared -Wl,-soname,$(LIBNAME) -o $(LIBNAME) $^ -lc - ln -f -s $(LIB).so.0 $(LIB).so - ln -f -s $(LIBNAME) $(LIB).so.0 + $(CC) -shared -Wl,-soname,$(LIB).so.$(SO_VERSION) -o $(LIBNAME) $^ -lc + ln -f -s $(LIBNAME) $(LIB).so.$(SO_VERSION) + ln -f -s $(LIB).so.$(SO_VERSION) $(LIB).so else $(AR) crvsD $@ $^ endif @@ -110,19 +111,18 @@ endif install: $(LIBNAME) # Install on FreeBSD ifeq ($(shell uname), FreeBSD) - install -d $(LIBDIR) - install -m $(LIBPERM) $(LIBNAME) $(LIBDIR) + install -d $(LIB_INSTALL_DIR) + install -m $(LIBPERM) $(LIBNAME) $(LIB_INSTALL_DIR) install -m 0644 $(HDR) $(HDR_DIR) # Install on Linux else - install -m $(LIBPERM) $(LIBNAME) -D $(LIBDIR)/$(LIBNAME) + install -m $(LIBPERM) $(LIBNAME) -D $(LIB_INSTALL_DIR)/$(LIBNAME) install -m 0644 $(HDR) -D $(HDR_DIR)/$(HDR) endif # Create symlinks to DSO ifeq ($(SHARED),y) - ln -f -s $(LIBDIR)/$(LIB).so.0 $(LIBDIR)/$(LIB).so - ln -f -s $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIB).so.0 + cd $(LIB_INSTALL_DIR); ln -f -s $(LIB).so.$(VERSION) $(LIB).so.$(SO_VERSION); ln -f -s $(LIB).so.$(SO_VERSION) $(LIB).so ldconfig endif
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