@@ -81,20 +81,16 @@ LINK.static = $(AR) $(AROPT)
8181
8282ifdef SO_MAJOR_VERSION
8383# Default library naming convention used by the majority of platforms
84- ifeq ($(enable_shared), yes)
8584shlib= lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
8685shlib_major= lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
8786shlib_bare= lib$(NAME)$(DLSUFFIX)
88- endif
8987# Testing the soname variable is a reliable way to determine whether a
9088# linkable library is being built.
9189soname= $(shlib_major)
9290else
9391# Naming convention for dynamically loadable modules
94- ifeq ($(enable_shared), yes)
9592shlib= $(NAME)$(DLSUFFIX)
9693endif
97- endif
9894stlib= lib$(NAME).a
9995
10096ifndef soname
@@ -321,7 +317,6 @@ $(stlib): $(OBJS) | $(SHLIB_PREREQS)
321317$(RANLIB) $@
322318endif #haslibarule
323319
324- ifeq ($(enable_shared), yes)
325320
326321ifeq (,$(filter cygwin win32,$(PORTNAME)))
327322ifneq ($(PORTNAME), aix)
@@ -392,8 +387,6 @@ $(stlib): $(shlib) $(DLL_DEFFILE) | $(SHLIB_PREREQS)
392387
393388endif # PORTNAME == cygwin || PORTNAME == win32
394389
395- endif # enable_shared
396-
397390
398391# We need several not-quite-identical variants of .DEF files to build
399392# DLLs for Windows. These are made from the single source file
@@ -446,7 +439,6 @@ ifeq ($(PORTNAME), darwin)
446439ranlib $(stlib)
447440endif
448441
449- ifeq ($(enable_shared), yes)
450442install-lib-shared: $(shlib) installdirs-lib
451443ifdef soname
452444# we don't install $(shlib) on AIX
@@ -471,14 +463,6 @@ endif # not aix
471463else # no soname
472464$(INSTALL_SHLIB) $< '$(DESTDIR)$(pkglibdir)/$(shlib)'
473465endif
474- else # not enable_shared
475- ifndef soname
476- install-lib-shared:
477- @echo "*****"; \
478- echo "* Module $(NAME) was not installed due to lack of shared library support."; \
479- echo "*****"
480- endif
481- endif # enable_shared
482466
483467
484468installdirs-lib:
@@ -497,11 +481,9 @@ endif
497481uninstall-lib:
498482ifdef soname
499483rm -f '$(DESTDIR)$(libdir)/$(stlib)'
500- ifeq ($(enable_shared), yes)
501484rm -f '$(DESTDIR)$(libdir)/$(shlib_bare)' \
502485 '$(DESTDIR)$(libdir)/$(shlib_major)' \
503486 '$(DESTDIR)$(libdir)/$(shlib)'
504- endif # enable_shared
505487else # no soname
506488rm -f '$(DESTDIR)$(pkglibdir)/$(shlib)'
507489endif # no soname