These replace the mixture of macros used to pick the features presented by the standard system header files on Linux. Updated the section of the CA reference manual that showed some example compile lines to correct for 3.15 build changes. Removed unused code & out-of-date comments.
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
# CONFIG.Common.linuxCommon
|
|
#
|
|
# $Revision-Id$
|
|
# This file is maintained by the build community.
|
|
#
|
|
# 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
|
|
|
|
# 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
|
|
SHRLIBDIR_RPATH_LDFLAGS_YES += $(SHRLIB_DEPLIB_DIRS:%=-Wl,-rpath,%)
|
|
SHRLIBDIR_LDFLAGS += $(SHRLIBDIR_RPATH_LDFLAGS_$(LINKER_USE_RPATH))
|
|
|
|
# Set runtime path for products
|
|
PRODDIR_RPATH_LDFLAGS_YES += $(PROD_DEPLIB_DIRS:%=-Wl,-rpath,%)
|
|
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
|