# CONFIG.Common.solaris-sparc # # $Id$ # This file is maintained by the build community. # # Definitions for solaris-sparc target archs # Sites may override these definitions in CONFIG_SITE.Common.solaris-sparc #------------------------------------------------------- # Include definitions common to all Unix target archs include $(CONFIG)/os/CONFIG.Common.UnixCommon OS_CLASS = solaris ARCH_CLASS = sparc 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) # Set runtime path for shared libraries RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_DIRS:%=-R%) ifeq ($(BUILD_CLASS),CROSS) GNU_TARGET=sparc-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)) # Definitions used when COMMANDLINE_LIBRARY is READLINE GNU_DIR = /opt/gnu INCLUDES_READLINE = -I$(GNU_DIR)/include LDFLAGS_READLINE += -R$(GNU_DIR)/lib LDFLAGS_READLINE += -L$(GNU_DIR)/lib LDLIBS_READLINE = -lreadline -lcurses # Use archive if there is a problem with the readline shared library #LDLIBS_READLINE = -Bstatic -lreadline -Bdynamic -lcurses