Balint Cristian 8c4554
--- include/Make/Shlib.make.orig	2008-03-27 17:14:55.000000000 +0200
Balint Cristian 8c4554
+++ include/Make/Shlib.make	2008-03-27 17:17:02.000000000 +0200
Balint Cristian 8c4554
@@ -1,13 +1,17 @@
Balint Cristian 3f92e1
 # common dependencies and rules for building shared libraries
Balint Cristian 3f92e1
 
Balint Cristian 8c4554
-SHLIB = $(ARCH_LIBDIR)/$(SHLIB_PREFIX)$(SHLIB_NAME).$(GRASS_VERSION_NUMBER)$(SHLIB_SUFFIX)
Balint Cristian 3f92e1
+GRASS_MAJOR=6
Balint Cristian 8c4554
+GRASS_MINOR=3
Balint Cristian 3f92e1
+
Balint Cristian 3f92e1
+SHLIB = $(ARCH_LIBDIR)/$(SHLIB_PREFIX)$(SHLIB_NAME)$(SHLIB_SUFFIX).$(GRASS_VERSION_NUMBER)
Balint Cristian 3f92e1
 
Balint Cristian 8c4554
 CFLAGS += $(SHLIB_CFLAGS) $(NLS_CFLAGS)
Balint Cristian 3f92e1
 LDFLAGS += $(SHLIB_LDFLAGS)
Balint Cristian 3f92e1
 
Balint Cristian 3f92e1
 $(SHLIB): $(SHLIB_OBJS)
Balint Cristian 8c4554
-	$(SHLIB_LD) -o $@ $(LDFLAGS) $^ $(EXTRA_LIBS) && \
Balint Cristian 8c4554
-	(cd $(ARCH_LIBDIR); ln -f -s $(notdir $@) $(patsubst %.$(GRASS_VERSION_NUMBER)$(SHLIB_SUFFIX),%$(SHLIB_SUFFIX),$@))
Balint Cristian 3f92e1
+	$(SHLIB_LD) -o $@ -Wl,-soname,lib$(SHLIB_NAME)$(SHLIB_SUFFIX).$(GRASS_MAJOR).$(GRASS_MINOR) $(LDFLAGS) $^ $(EXTRA_LIBS) && \
Balint Cristian 3f92e1
+		ln -f -s $(notdir $@) $(patsubst %$(SHLIB_SUFFIX).$(GRASS_VERSION_NUMBER),%$(SHLIB_SUFFIX),$@); \
Balint Cristian 8c4554
+		ln -f -s $(notdir $@) $(patsubst %$(SHLIB_SUFFIX).$(GRASS_VERSION_NUMBER),%$(SHLIB_SUFFIX).$(GRASS_MAJOR).$(GRASS_MINOR),$@);
Balint Cristian 3f92e1
 
Balint Cristian 3f92e1
 shlib: $(SHLIB)
Balint Cristian 3f92e1