Some checks failed
Check EditorConfig / editorconfig (push) Failing after 1s
Base / Cross linux-aarch64 (push) Failing after 2s
Base / Fedora-33 (push) Failing after 2s
Base / Fedora-latest (push) Failing after 1s
Base / Cross linux-arm gnueabi (push) Failing after 1s
Base / Cross linux-arm gnueabihf (push) Failing after 2s
Base / CentOS-7 (push) Failing after 1s
Base / Ub-20 clang-10 C++11 (push) Has been cancelled
Base / MacOS clang-12 (push) Has been cancelled
Base / Ub-20 clang-10 (push) Has been cancelled
Base / Win2019 mingw (push) Has been cancelled
Base / Ub-20 gcc-9 + RT-5.1 beatnik (push) Has been cancelled
Base / Ub-20 gcc-9 + RT-4.10 (push) Has been cancelled
Base / Ub-20 gcc-9 + RT-4.9 (push) Has been cancelled
Base / Ub-20 gcc-9 + RT-5.1 pc686 (push) Has been cancelled
Base / Ub-20 gcc-9 + RT-5.1 uC5282 (push) Has been cancelled
Base / Ub-20 gcc-9 + RT-5.1 xilinx_zynq_a9_qemu (push) Has been cancelled
Base / Ub-20 gcc-9 + MinGW (push) Has been cancelled
Base / Ub-20 gcc-9 unsigned char (push) Has been cancelled
Base / Ub-20 gcc-9 C++11, static (push) Has been cancelled
Base / Ub-20 gcc-9 + MinGW, static (push) Has been cancelled
Base / Ub-22 gcc-12 c++20 Werror (push) Has been cancelled
Base / Win2019 MSC-19 (push) Has been cancelled
Base / Win2019 MSC-19, debug (push) Has been cancelled
Base / Win2019 MSC-19, static (push) Has been cancelled
49 lines
2.0 KiB
Plaintext
49 lines
2.0 KiB
Plaintext
# CONFIG.Common.linuxCommon
|
|
#
|
|
# Definitions for linux target builds
|
|
# Sites may override these definitions in CONFIG_SITE.Common.linuxCommon
|
|
#-------------------------------------------------------
|
|
|
|
# Include definitions common to all Unix targets
|
|
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
|
|
|
OS_CLASS = Linux
|
|
|
|
# Define _GNU_SOURCE and _DEFAULT_SOURCE for maximum portability
|
|
POSIX_CPPFLAGS = -D_GNU_SOURCE -D_DEFAULT_SOURCE
|
|
POSIX_LDLIBS = -lpthread
|
|
|
|
OP_SYS_CPPFLAGS += -Dlinux
|
|
OP_SYS_LDLIBS += -lrt -ldl
|
|
# Use -rdynamic to maximize symbols available for stacktrace
|
|
OP_SYS_LDFLAGS += -rdynamic
|
|
|
|
# Linker flags for static & shared-library builds
|
|
STATIC_LDFLAGS_YES= -Wl,-Bstatic
|
|
STATIC_LDFLAGS_NO=
|
|
STATIC_LDLIBS_YES= -Wl,-Bdynamic
|
|
|
|
# Set runtime path for shared libraries if LINKER_USE_RPATH=YES
|
|
SHRLIBDIR_RPATH_LDFLAGS_YES = $(subst $(abspath $(LINKER_ORIGIN_ROOT)),$(FINAL_LOCATION),$(SHRLIB_DEPLIB_DIRS:%=-Wl,-rpath,%)) $(SHRLIB_DEPLIB_DIRS:%=-Wl,-rpath-link,%)
|
|
SHRLIBDIR_RPATH_LDFLAGS_ORIGIN = $(shell $(MAKERPATH) -O '\$$ORIGIN' -F $(FINAL_DIR) -R $(LINKER_ORIGIN_ROOT) $(SHRLIB_DEPLIB_DIRS))
|
|
SHRLIBDIR_LDFLAGS += \
|
|
$(SHRLIBDIR_RPATH_LDFLAGS_$(LINKER_USE_RPATH))
|
|
|
|
# Set runtime path for products if LINKER_USE_RPATH=YES
|
|
PRODDIR_RPATH_LDFLAGS_YES = $(subst $(abspath $(LINKER_ORIGIN_ROOT)),$(FINAL_LOCATION),$(PROD_DEPLIB_DIRS:%=-Wl,-rpath,%)) $(SHRLIB_DEPLIB_DIRS:%=-Wl,-rpath-link,%)
|
|
PRODDIR_RPATH_LDFLAGS_ORIGIN = $(shell $(MAKERPATH) -O '\$$ORIGIN' -F $(FINAL_DIR) -R $(LINKER_ORIGIN_ROOT) $(PROD_DEPLIB_DIRS))
|
|
PRODDIR_LDFLAGS += \
|
|
$(PRODDIR_RPATH_LDFLAGS_$(LINKER_USE_RPATH))
|
|
|
|
# Link libraries controlled by COMMANDLINE_LIBRARY
|
|
# The newest Linux versions only need readline, older ones need both
|
|
# readline and ncurses, and the oldest need readline and curses
|
|
LDLIBS_READLINE = -lreadline
|
|
LDLIBS_READLINE_NCURSES = -lreadline -lncurses
|
|
LDLIBS_READLINE_CURSES = -lreadline -lcurses
|
|
|
|
#--------------------------------------------------
|
|
# Allow site overrides
|
|
-include $(CONFIG)/os/CONFIG_SITE.Common.linuxCommon
|
|
-include $(CONFIG)/os/CONFIG_SITE.$(EPICS_HOST_ARCH).linuxCommon
|