@@ -81,20 +81,16 @@ LINK.static = $(AR) $(AROPT)
81
81
82
82
ifdef SO_MAJOR_VERSION
83
83
# Default library naming convention used by the majority of platforms
84
- ifeq ($(enable_shared), yes)
85
84
shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
86
85
shlib_major = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
87
86
shlib_bare = lib$(NAME)$(DLSUFFIX)
88
- endif
89
87
# Testing the soname variable is a reliable way to determine whether a
90
88
# linkable library is being built.
91
89
soname = $(shlib_major)
92
90
else
93
91
# Naming convention for dynamically loadable modules
94
- ifeq ($(enable_shared), yes)
95
92
shlib = $(NAME)$(DLSUFFIX)
96
93
endif
97
- endif
98
94
stlib = lib$(NAME).a
99
95
100
96
ifndef soname
@@ -321,7 +317,6 @@ $(stlib): $(OBJS) | $(SHLIB_PREREQS)
321
317
$(RANLIB) $@
322
318
endif #haslibarule
323
319
324
- ifeq ($(enable_shared), yes)
325
320
326
321
ifeq (,$(filter cygwin win32,$(PORTNAME)))
327
322
ifneq ($(PORTNAME), aix)
@@ -392,8 +387,6 @@ $(stlib): $(shlib) $(DLL_DEFFILE) | $(SHLIB_PREREQS)
392
387
393
388
endif # PORTNAME == cygwin || PORTNAME == win32
394
389
395
- endif # enable_shared
396
-
397
390
398
391
# We need several not-quite-identical variants of .DEF files to build
399
392
# DLLs for Windows. These are made from the single source file
@@ -446,7 +439,6 @@ ifeq ($(PORTNAME), darwin)
446
439
ranlib $(stlib)
447
440
endif
448
441
449
- ifeq ($(enable_shared), yes)
450
442
install-lib-shared: $(shlib) installdirs-lib
451
443
ifdef soname
452
444
# we don't install $(shlib) on AIX
@@ -471,14 +463,6 @@ endif # not aix
471
463
else # no soname
472
464
$(INSTALL_SHLIB) $< '$(DESTDIR)$(pkglibdir)/$(shlib)'
473
465
endif
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
482
466
483
467
484
468
installdirs-lib:
@@ -497,11 +481,9 @@ endif
497
481
uninstall-lib:
498
482
ifdef soname
499
483
rm -f '$(DESTDIR)$(libdir)/$(stlib)'
500
- ifeq ($(enable_shared), yes)
501
484
rm -f '$(DESTDIR)$(libdir)/$(shlib_bare)' \
502
485
'$(DESTDIR)$(libdir)/$(shlib_major)' \
503
486
'$(DESTDIR)$(libdir)/$(shlib)'
504
- endif # enable_shared
505
487
else # no soname
506
488
rm -f '$(DESTDIR)$(pkglibdir)/$(shlib)'
507
489
endif # no soname
0 commit comments