removed duplicated linked libraries for darwin

This commit is contained in:
Antonio Linares
2025-10-04 08:54:21 +02:00
parent d677cbb1e9
commit a868adf053
2 changed files with 41 additions and 2 deletions

View File

@@ -53,6 +53,22 @@ ifeq ($(BUILD_SHARED),yes)
HB_LIBS_TPL :=
else
# (have to use '=' operator here)
ifeq ($(HB_PLATFORM),darwin)
# On macOS, ld warns about duplicate libraries and can handle circular deps without duplicates
HB_LIBS_TPL = \
hbextern \
hbdebug \
$(_HB_VM) \
hbrtl \
hblang \
hbcpage \
$(HB_GT_LIBS) \
$(_HB_RDD) \
hbmacro \
hbcplr \
hbpp \
hbcommon
else
HB_LIBS_TPL = \
hbextern \
hbdebug \
@@ -68,6 +84,7 @@ else
hbcplr \
hbpp \
hbcommon
endif
ifneq ($(HB_HAS_PCRE_LOCAL),)
HB_LIBS_TPL += hbpcre