# Copyright (c) 1998, Regents of the University of California
#
# IDENTIFICATION
-# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.114 2008/04/07 14:15:58 petere Exp $
+# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.116 2008/04/08 09:50:29 petere Exp $
#
#-------------------------------------------------------------------------
# Testing the soname variable is a reliable way to determine whether a
# linkable library is being built.
soname = $(shlib_major)
-stlib = lib$(NAME).a
else
# Naming convention for dynamically loadable modules
ifeq ($(enable_shared), yes)
shlib = $(NAME)$(DLSUFFIX)
endif
endif
+stlib = lib$(NAME).a
ifndef soname
# additional flags for backend modules
endif
ifeq ($(PORTNAME), cygwin)
- shlib = cyg$(NAME)$(DLSUFFIX)
+ ifdef SO_MAJOR_VERSION
+ shlib = cyg$(NAME)$(DLSUFFIX)
+ endif
haslibarule = yes
endif
ifeq ($(PORTNAME), win32)
- shlib = lib$(NAME)$(DLSUFFIX)
+ ifdef SO_MAJOR_VERSION
+ shlib = lib$(NAME)$(DLSUFFIX)
+ endif
haslibarule = yes
endif