xref: /onnv-gate/usr/src/lib/libc/capabilities/sun4u/Makefile.com (revision 12719:bd9fb35d09c2)
1*12719SRod.Evans@Sun.COM#
2*12719SRod.Evans@Sun.COM# CDDL HEADER START
3*12719SRod.Evans@Sun.COM#
4*12719SRod.Evans@Sun.COM# The contents of this file are subject to the terms of the
5*12719SRod.Evans@Sun.COM# Common Development and Distribution License (the "License").
6*12719SRod.Evans@Sun.COM# You may not use this file except in compliance with the License.
7*12719SRod.Evans@Sun.COM#
8*12719SRod.Evans@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*12719SRod.Evans@Sun.COM# or http://www.opensolaris.org/os/licensing.
10*12719SRod.Evans@Sun.COM# See the License for the specific language governing permissions
11*12719SRod.Evans@Sun.COM# and limitations under the License.
12*12719SRod.Evans@Sun.COM#
13*12719SRod.Evans@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
14*12719SRod.Evans@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*12719SRod.Evans@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
16*12719SRod.Evans@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
17*12719SRod.Evans@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
18*12719SRod.Evans@Sun.COM#
19*12719SRod.Evans@Sun.COM# CDDL HEADER END
20*12719SRod.Evans@Sun.COM#
21*12719SRod.Evans@Sun.COM
22*12719SRod.Evans@Sun.COM#
23*12719SRod.Evans@Sun.COM# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24*12719SRod.Evans@Sun.COM#
25*12719SRod.Evans@Sun.COM
26*12719SRod.Evans@Sun.COMTRG_PLATFORM =	sun4u
27*12719SRod.Evans@Sun.COMGEN_PLATFORM =	sun4u
28*12719SRod.Evans@Sun.COM
29*12719SRod.Evans@Sun.COMinclude		../../Makefile.com
30*12719SRod.Evans@Sun.COM
31*12719SRod.Evans@Sun.COMOBJECTS =	memcpy.o memset.o memcmp.o
32*12719SRod.Evans@Sun.COM
33*12719SRod.Evans@Sun.COMinclude		$(SRC)/lib/Makefile.lib
34*12719SRod.Evans@Sun.COM
35*12719SRod.Evans@Sun.COMIFLAGS =	-I$(SRC)/uts/$(GEN_PLATFORM) \
36*12719SRod.Evans@Sun.COM		-I$(ROOT)/usr/platform/$(GEN_PLATFORM)/include
37*12719SRod.Evans@Sun.COM
38*12719SRod.Evans@Sun.COMAS_CPPFLAGS +=	-D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH) $(IFLAGS)
39*12719SRod.Evans@Sun.COMASFLAGS =	-P -K pic
40*12719SRod.Evans@Sun.COM
41*12719SRod.Evans@Sun.COM# memcpy.s provides __align_cpy_1 as an alias for memcpy.  However, this isn't
42*12719SRod.Evans@Sun.COM# a WEAK symbol, and hence ld(1)'s ability to cull duplicate local symbols with
43*12719SRod.Evans@Sun.COM# the same address is compromised.  The result is .SUNW_dynsymsort: duplicate
44*12719SRod.Evans@Sun.COM# symbol errors from check_rtime.  Use elfedit to assign a weak binding.
45*12719SRod.Evans@Sun.COM
46*12719SRod.Evans@Sun.COMPOST_PROCESS_OBJCAP_O =	elfedit -e "sym:st_bind __align_cpy_1 STB_WEAK" $@
47