Skip to content

Commit

Permalink
Fix an installation issue on Linux
Browse files Browse the repository at this point in the history
Relates to [MACCAN-215]
  • Loading branch information
uv-software committed Aug 2, 2024
1 parent e80181a commit f7dce4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Libraries/CANAPI/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ ifeq ($(current_OS),Linux) # linux - libuvcanpcb.so

LIBRARY = libuvcanpcb

SONAME = $(LIBRARY).so
SONAME = $(LIBRARY).so.1
TARGET = $(SONAME).$(VERSION)
STATIC = $(LIBRARY).a

Expand Down Expand Up @@ -225,8 +225,8 @@ ifeq ($(current_OS),Darwin)
$(RM) $(INSTALL)/$(LIBRARY).dylib ; $(LN) $(INSTALL)/$(TARGET) $(INSTALL)/$(LIBRARY).dylib
endif
ifeq ($(current_OS),Linux)
$(RM) $(INSTALL)/$(SONAME) ; ln -s $(INSTALL)/$(TARGET) $(INSTALL)/$(SONAME)
$(RM) $(INSTALL)/$(LIBRARY).so ; ln -s $(INSTALL)/$(SONAME) $(INSTALL)/$(LIBRARY).so
$(RM) $(INSTALL)/$(SONAME) ; $(LN) $(INSTALL)/$(TARGET) $(INSTALL)/$(SONAME)
$(RM) $(INSTALL)/$(LIBRARY).so ; $(LN) $(INSTALL)/$(SONAME) $(INSTALL)/$(LIBRARY).so
endif


Expand Down
6 changes: 3 additions & 3 deletions Libraries/PeakCAN/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ ifeq ($(current_OS),Linux) # Linux - libpeakcan.so

LIBRARY = libpeakcan

SONAME = $(LIBRARY).so
SONAME = $(LIBRARY).so.1
TARGET = $(SONAME).$(VERSION)
STATIC = $(LIBRARY).a

Expand Down Expand Up @@ -227,8 +227,8 @@ ifeq ($(current_OS),Darwin)
$(RM) $(INSTALL)/$(LIBRARY).dylib ; $(LN) $(INSTALL)/$(TARGET) $(INSTALL)/$(LIBRARY).dylib
endif
ifeq ($(current_OS),Linux)
$(RM) $(INSTALL)/$(SONAME) ; ln -s $(INSTALL)/$(TARGET) $(INSTALL)/$(SONAME)
$(RM) $(INSTALL)/$(LIBRARY).so ; ln -s $(INSTALL)/$(SONAME) $(INSTALL)/$(LIBRARY).so
$(RM) $(INSTALL)/$(SONAME) ; $(LN) $(INSTALL)/$(TARGET) $(INSTALL)/$(SONAME)
$(RM) $(INSTALL)/$(LIBRARY).so ; $(LN) $(INSTALL)/$(SONAME) $(INSTALL)/$(LIBRARY).so
endif


Expand Down

0 comments on commit f7dce4d

Please sign in to comment.