4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
26 # The link-editor related source files and Makefile files have at times been
27 # unified across all presently maintained release gates. However, some of the
28 # compiler pre-processor flags and link-editor flags are different among the
29 # releases. This file is used to specify such flags.
31 # This file is included by ./Makefile.com, but may also be included directly in
32 # the case where the utility is relying on the contents of ../../Makefile.com.
34 # This file should be the only file which is different among the presently
35 # maintained release workspaces, when the sources are unified.
37 # CPPFEATUREMACROS provides for selectively turning on/off features within the
38 # various link-editor components. Presently, none are set.
40 # Some source files need to use #ifdef to distinguish between the patch release,
41 # and for the packages targeting to the pre-libc/libthread unified environment.
42 # These values are available for CPPFLAGS:
44 # SGS_PRE_UNIFIED_PROCESS
46 # is set if the target release is for pre-libc/libthread unified
47 # environment. This is used for rtld and crle.
50 # Common Macro definitions
53 VAR_PLAT_i386= intel/ia32
54 VAR_PLAT_amd64= intel/amd64
57 # VAR_AVLDIR - directory to find avl.c in.
59 # The avl.c file is under usr/src/common/avl.
61 # The avl.h and avl_impl.h files are under include/sys.
63 VAR_AVLDIR= $(SRCBASE)/common/avl
64 VAR_AVLINCDIR= -I $(SRCTOP)/include
67 # VAR_DTRDIR - directory to find dtrace_data.c in.
69 # In Solaris 10 and earlier releases, dtrace_data.c was maintained as separate
70 # files under sgs/rtld. This file is now under usr/src/common/dtrace.
72 VAR_DTRDIR= $(SRCBASE)/common/dtrace
77 # For Solaris 10 and earlier releases, the SGS components were installed in
78 # /usr/ccs/bin. These components are now installed in /usr/bin with associated
79 # symbolic links for compatibility. For previous behavior, set the VAR_SGSBIN*
80 # variables to the appropriate ROOTCCSBIN* rule and set the VAR_SGSCCSLINK*
83 VAR_SGSBIN= $(ROOTBIN)
84 VAR_SGSBINPROG= $(ROOTPROG)
85 VAR_SGSBIN64= $(ROOTBIN64)
86 VAR_SGSBINPROG64= $(ROOTPROG64)
88 VAR_SGSCCSLINK= $(ROOTCCSBINLINK)
89 VAR_SGSCCSLINK64= $(ROOTCCSBINLINK64)
94 VAR_LD_LLDFLAGS= '-R$$ORIGIN/../../lib'
95 VAR_LD_LLDFLAGS64 = '-R$$ORIGIN/../../../lib/$(MACH64)'
100 VAR_ELFDUMP_LLDFLAGS= '-R$$ORIGIN/../../lib'
101 VAR_ELFDUMP_LLDFLAGS64 ='-R$$ORIGIN/../../../lib/$(MACH64)'
106 VAR_ELFEDIT_LLDFLAGS= '-R$$ORIGIN/../../lib'
107 VAR_ELFEDIT_LLDFLAGS64 ='-R$$ORIGIN/../../../lib/$(MACH64)'
112 VAR_LDDSTUB_INTERP= -I'$$ORIGIN/ld.so.1'
117 VAR_LIBLD_CPPFLAGS= $(VAR_AVLINCDIR)
118 VAR_LIBLD_64_ROOTFS_LIBDIR= $(ROOT)/lib/$(MACH64)
123 VAR_TOOLS_CPPFLAGS= $(VAR_AVLINCDIR)
128 VAR_LIBLDDBG_64_ROOTFS_LIBDIR= $(ROOT)/lib/$(MACH64)
133 VAR_RTLD_CPICLIB= -L ../../../../lib/libc/$(MACH)
134 VAR_RTLD_CPICLIB64= -L ../../../../lib/libc/$(MACH64)