32 lines
911 B
Plaintext
32 lines
911 B
Plaintext
# $Id$
|
|
#
|
|
# This file is maintained by the build community.
|
|
#
|
|
# Definitions for freebsd target builds
|
|
# Sites may override these definitions in CONFIG_SITE.Common.freebsdCommon
|
|
#-------------------------------------------------------
|
|
|
|
# Include definitions common to all Unix targets
|
|
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
|
|
|
OS_CLASS = freebsd
|
|
|
|
CODE_CPPFLAGS = -D_REENTRANT
|
|
|
|
#POSIX_CPPFLAGS = -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500
|
|
POSIX_CPPFLAGS = -D_POSIX_THREADS
|
|
POSIX_LDLIBS = -lpthread
|
|
|
|
# -D_BSD_SOURCE for gethostname() in unistd.h as needed by cacChannelIO.cpp.
|
|
OP_SYS_CPPFLAGS += -D_BSD_SOURCE
|
|
OP_SYS_CPPFLAGS += -Dfreebsd
|
|
#OP_SYS_LDLIBS += -lrt
|
|
|
|
# Set runtime path for shared libraries
|
|
RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_FULLPATHDIRS:%=-Wl,-rpath,%)
|
|
|
|
# Definitions used when COMMANDLINE_LIBRARY is READLINE
|
|
LDLIBS_READLINE = -lreadline -lcurses
|
|
|
|
GNU_LDLIBS_YES = -lgcc_pic
|