44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
# CONFIG.Common.solaris-x86
|
|
#
|
|
# $Id$
|
|
# This file is maintained by the build community.
|
|
#
|
|
# Definitions for solaris-x86 target archs
|
|
# Sites may override these definitions in CONFIG_SITE.Common.solaris-x86
|
|
#-------------------------------------------------------
|
|
|
|
# Include definitions common to all Unix target archs
|
|
include $(CONFIG)/os/CONFIG.Common.UnixCommon
|
|
|
|
OS_CLASS = solaris
|
|
ARCH_CLASS = x86
|
|
|
|
CODE_CPPFLAGS = -D__EXTENSIONS__
|
|
|
|
SOLARIS_VERSION = $(subst 5.,,$(shell uname -r))
|
|
|
|
# Flags for solaris 6
|
|
POSIX_CPPFLAGS_YES_6 += -D_REENTRANT
|
|
|
|
POSIX_CPPFLAGS_YES += -D_POSIX_C_SOURCE=199506L $(POSIX_CPPFLAGS_YES_$(SOLARIS_VERSION))
|
|
POSIX_CPPFLAGS_YES += -D_XOPEN_SOURCE=500
|
|
POSIX_LDLIBS_YES_6 += -lthread
|
|
POSIX_LDLIBS_YES += -lposix4 -lpthread $(POSIX_LDLIBS_YES_$(SOLARIS_VERSION))
|
|
|
|
OP_SYS_CPPFLAGS += -DSOLARIS=$(SOLARIS_VERSION)
|
|
ARCH_DEP_CPPFLAGS = -D_X86_
|
|
|
|
# Set runtime path for shared libraries
|
|
RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_DIRS:%=-R%)
|
|
|
|
ifeq ($(BUILD_CLASS),CROSS)
|
|
GNU_TARGET=x86-sun-solaris2
|
|
CMPLR_SUFFIX=
|
|
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
|
|
endif
|
|
|
|
OP_SYS_LDLIBS += -lsocket -lnsl
|
|
OP_SYS_LDLIBS_8 += -lCrun -lc -lCstd
|
|
OP_SYS_LDLIBS_9 += -lCrun -lc -lCstd
|
|
OP_SYS_LDLIBS += $(OP_SYS_LDLIBS_$(SOLARIS_VERSION))
|