Skip to content

Commit

Permalink
Merge pull request OpenMathLib#4534 from martin-frbg/issue4528
Browse files Browse the repository at this point in the history
Omit redundant prefixes or suffixes in library naming
  • Loading branch information
martin-frbg authored Feb 27, 2024
2 parents accea15 + d140940 commit 5fbe259
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile.system
Original file line number Diff line number Diff line change
Expand Up @@ -1520,10 +1520,18 @@ ifndef LIBNAMEPREFIX
LIBNAMEPREFIX =
endif

SYMPREFIX=$(SYMBOLPREFIX)
ifeq ($(SYMBOLPREFIX),$(LIBNAMEPREFIX))
SYMPREFIX=
endif
SYMSUFFIX=$(SYMBOLSUFFIX)
ifeq ($(SYMBOLSUFFIX),$(LIBNAMESUFFIX))
SYMSUFFIX=
endif
ifndef LIBNAMESUFFIX
LIBNAMEBASE = $(SYMBOLPREFIX)$(LIBSONAMEBASE)$(SYMBOLSUFFIX)
LIBNAMEBASE = $(SYMPREFIX)$(LIBSONAMEBASE)$(SYMSUFFIX)
else
LIBNAMEBASE = $(SYMBOLPREFIX)$(LIBSONAMEBASE)$(SYMBOLSUFFIX)$(LIBNAMESUFFIX)
LIBNAMEBASE = $(SYMPREFIX)$(LIBSONAMEBASE)$(SYMSUFFIX)$(LIBNAMESUFFIX)
endif

ifeq ($(OSNAME), CYGWIN_NT)
Expand Down

0 comments on commit 5fbe259

Please sign in to comment.