Skip to content

Commit 0e7c359

Browse files
committed
added soname to libspnav GNU-ized the filename.
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/libspnav@64 ef983eb1-d774-4af8-acfd-baaf7b16a646
1 parent 84dfaf8 commit 0e7c359

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Makefile.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
obj = spnav.o $(magellan_obj)
33
hdr = spnav.h spnav_magellan.h spnav_config.h
44
lib_a = libspnav.a
5-
lib_so = libspnav.so
5+
soname = libspnav.so.0
6+
lib_so = $(soname).1
67

78
CC = gcc
89
AR = ar
@@ -16,7 +17,7 @@ $(lib_a): $(obj)
1617
$(AR) rcs $@ $(obj)
1718

1819
$(lib_so): $(obj)
19-
$(CC) -shared -o $@ $(obj)
20+
$(CC) -shared -Wl,-soname,$(soname) -o $@ $(obj)
2021

2122
%.o: $(srcdir)/%.c
2223
$(CC) $(CFLAGS) -c $< -o $@

0 commit comments

Comments
 (0)