# USE_TFO : enable TCP fast open. Supported on Linux >= 3.7.
# USE_NS : enable network namespace support. Supported on Linux >= 2.6.24.
# USE_DL : enable it if your system requires -ldl. Automatic on Linux.
+# USE_RT : enable it if your system requires -lrt. Automatic on Linux.
# USE_DEVICEATLAS : enable DeviceAtlas api.
# USE_51DEGREES : enable third party device detection library from 51Degrees
# USE_WURFL : enable WURFL detection library from Scientiamobile
USE_TPROXY = implicit
USE_LIBCRYPT = implicit
USE_DL = implicit
+ USE_RT = implicit
else
ifeq ($(TARGET),linux24)
# This is for standard Linux 2.4 with netfilter but without epoll()
USE_TPROXY = implicit
USE_LIBCRYPT = implicit
USE_DL = implicit
+ USE_RT = implicit
else
ifeq ($(TARGET),linux24e)
# This is for enhanced Linux 2.4 with netfilter and epoll() patch > 0.21
USE_TPROXY = implicit
USE_LIBCRYPT = implicit
USE_DL = implicit
+ USE_RT = implicit
else
ifeq ($(TARGET),linux26)
# This is for standard Linux 2.6 with netfilter and standard epoll()
USE_LIBCRYPT = implicit
USE_FUTEX = implicit
USE_DL = implicit
+ USE_RT = implicit
else
ifeq ($(TARGET),linux2628)
# This is for standard Linux >= 2.6.28 with netfilter, epoll, tproxy and splice
USE_CPU_AFFINITY= implicit
ASSUME_SPLICE_WORKS= implicit
USE_DL = implicit
+ USE_RT = implicit
USE_THREAD = implicit
else
ifeq ($(TARGET),solaris)
OPTIONS_LDFLAGS += -lpthread
endif
+ifneq ($(USE_RT),)
+BUILD_OPTIONS += $(call ignore_implicit,USE_RT)
+OPTIONS_LDFLAGS += -lrt
+endif
+
# report DLMALLOC_SRC only if explicitly specified
ifneq ($(DLMALLOC_SRC),)
BUILD_OPTIONS += DLMALLOC_SRC=$(DLMALLOC_SRC)