Don't add extraneous characters when SHRLIB_VERSION or GNU_TARGET are empty. The addprefix or addsuffix functions only include the prefix/suffix part if the list argument is not empty. This fixes issues naming libCap5.so at build-time.
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
# CONFIG.Common.linux-arm
|
|
#
|
|
# This file is maintained by the build community.
|
|
#
|
|
# Definitions for linux-arm target builds
|
|
# Sites may override these definitions in CONFIG_SITE.Common.linux-arm
|
|
#-------------------------------------------------------
|
|
|
|
# Include definitions common to all Linux targets
|
|
include $(CONFIG)/os/CONFIG.Common.linuxCommon
|
|
|
|
ARCH_CLASS = arm
|
|
|
|
ifeq ($(BUILD_CLASS),CROSS)
|
|
VALID_BUILDS = Ioc
|
|
GNU_TARGET = arm-linux
|
|
|
|
# prefix of compiler tools
|
|
CMPLR_SUFFIX =
|
|
CMPLR_PREFIX = $(addsuffix -,$(GNU_TARGET))
|
|
|
|
# Provide a link-time path for shared libraries
|
|
SHRLIBDIR_RPATH_LDFLAGS_YES += $(SHRLIB_DEPLIB_DIRS:%=-Wl,-rpath-link,%)
|
|
SHRLIBDIR_LDFLAGS += $(SHRLIBDIR_RPATH_LDFLAGS_$(LINKER_USE_RPATH))
|
|
|
|
# Provide a link-time path for products
|
|
PRODDIR_RPATH_LDFLAGS_YES += $(PROD_DEPLIB_DIRS:%=-Wl,-rpath-link,%)
|
|
PRODDIR_LDFLAGS += $(PRODDIR_RPATH_LDFLAGS_$(LINKER_USE_RPATH))
|
|
|
|
# Provide a link-time path for readline
|
|
RUNTIME_LDFLAGS_READLINE_YES = -Wl,-rpath-link,$(GNU_DIR)/lib
|
|
RUNTIME_LDFLAGS_READLINE = $(RUNTIME_LDFLAGS_READLINE_$(LINKER_USE_RPATH))
|
|
RUNTIME_LDFLAGS_READLINE_CURSES = $(RUNTIME_LDFLAGS_READLINE_$(LINKER_USE_RPATH))
|
|
RUNTIME_LDFLAGS_READLINE_NCURSES = $(RUNTIME_LDFLAGS_READLINE_$(LINKER_USE_RPATH))
|
|
|
|
endif
|