Print this page
9884 cw(1) should use -fpic rather than -Kpic
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/ucbcmd/sbcp/Makefile
+++ new/usr/src/ucbcmd/sbcp/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25
26 26 PROG= sbcp
27 27
28 28 include ../Makefile.ucbcmd
29 29
30 30 CLEANFILES= sysent.s
31 31 POFILE=
32 32
33 33 OBJS= sbcp.o sbcp_util.o
↓ open down ↓ |
33 lines elided |
↑ open up ↑ |
34 34
35 35 FILEMODE= 755
36 36
37 37 .KEEP_STATE:
38 38
39 39 # Preserve the relationship of libraries as they are defined in libc.so.1.9
40 40 LIBBC= ../../lib/libbc/sparc/libc.so.1.9
41 41 LIBUCB= ../../ucblib/libucb/sparc/libucb.so.1
42 42
43 43 # need libc/sparc/inc for PIC.h
44 -ASFLAGS= -P -D_ASM -DPIC -K pic
44 +ASFLAGS= -P -D_ASM -DPIC $(AS_PICFLAGS)
45 45 LDFLAGS= -R /usr/4lib:/usr/ucblib -e _start -G -t \
46 46 $(BLOCAL) $(ZNOVERSION) $(ZDEFS) $(ZTEXT) \
47 47 -I/usr/lib/ld.so.1
48 48 LIBS= $(LDLIBS.lib) -lmapmalloc $(LIBBC) $(LIBUCB) -lnsl -lc
49 49
50 50 CERRWARN += -_gcc=-Wno-unused-variable
51 51
52 52 all: $(PROG)
53 53
54 54 install: all $(ROOT4LIBPROG)
55 55
56 56 clean:
57 57 $(RM) $(OBJS) $(CLEANFILES)
58 58
59 59 $(PROG): $(OBJS)
60 60 $(LDOPTS) $(LD) $(LDFLAGS) -o sbcp $(OBJS) $(LIBS)
61 61 $(POST_PROCESS)
62 62
63 63 $(OBJS): sysent.s
64 64
65 65 sysent.s: syscalls.list mksysent
66 66 -$(RM) sysent.s
67 67 sh ./mksysent > sysent.s
68 68
69 69 include ../Makefile.ucbtarg
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX