Print this page
7015 libc tests need to use LINK64 correctly, rather than just passing -m64
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/test/libc-tests/tests/Makefile
+++ new/usr/src/test/libc-tests/tests/Makefile
1 1 #
2 2 # This file and its contents are supplied under the terms of the
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 #
13 13 # Copyright (c) 2012 by Delphix. All rights reserved.
14 14 # Copyright 2015 Garrett D'Amore <garrett@damore.org>
15 15 # Copyright 2016 Joyent, Inc.
16 16 #
17 17
18 18 SUBDIRS = \
19 19 catopen \
20 20 fpround \
21 21 newlocale \
22 22 nl_langinfo \
23 23 priv_gettext \
24 24 random \
25 25 strerror \
26 26 symbols \
27 27 threads \
28 28 wcsrtombs \
29 29 wctype
30 30
31 31 PROGS = \
32 32 aligned_alloc \
33 33 c11_threads \
34 34 c11_tss \
35 35 call_once \
36 36 endian \
37 37 quick_exit_order \
38 38 quick_exit_status \
39 39 timespec_get
40 40
41 41 SCRIPTS = \
42 42 quick_exit
43 43
44 44 CPPFLAGS += -D_REENTRANT
45 45
46 46 PROGS32 = $(PROGS:%=%.32)
47 47 PROGS64 = $(PROGS:%=%.64)
48 48
49 49 aligned_alloc.32 := LDLIBS += -lproc
50 50 aligned_alloc.64 := LDLIBS64 += -lproc
51 51
52 52 ROOTOPTDIR = $(ROOT)/opt/libc-tests/tests
53 53 ROOTOPTPROGS = $(PROGS32:%=$(ROOTOPTDIR)/%) \
54 54 $(PROGS64:%=$(ROOTOPTDIR)/%) \
55 55 $(SCRIPTS:%=$(ROOTOPTDIR)/%)
56 56
57 57 include $(SRC)/cmd/Makefile.cmd
58 58
59 59 all := TARGET = all
60 60 install := TARGET = install
61 61 clean := TARGET = clean
62 62 clobber := TARGET = clobber
63 63 lint := TARGET = lint
64 64
65 65 .KEEP_STATE:
66 66
67 67 install: $(SUBDIRS) $(ROOTOPTPROGS)
68 68
69 69 all: $(SUBDIRS) $(PROGS32) $(PROGS64)
70 70
71 71 clean lint: $(SUBDIRS)
72 72
73 73 $(ROOTOPTPROGS): $(PROGS32) $(PROGS64) $(ROOTOPTDIR)
74 74
↓ open down ↓ |
74 lines elided |
↑ open up ↑ |
75 75 $(ROOTOPTDIR):
76 76 $(INS.dir)
77 77
78 78 $(ROOTOPTDIR)/%: %
79 79 $(INS.file)
80 80
81 81 $(ROOTOPTDIR)/%: %.ksh
82 82 $(INS.rename)
83 83
84 84 %.64: %.c
85 - $(LINK.c) -m64 -o $@ $< $(LDLIBS64)
85 + $(LINK64.c) -o $@ $< $(LDLIBS64)
86 86 $(POST_PROCESS)
87 87
88 88 %.32: %.c
89 89 $(LINK.c) -m32 -o $@ $< $(LDLIBS)
90 90 $(POST_PROCESS)
91 91
92 92 clobber: $(SUBDIRS)
93 93 $(RM) $(PROGS32) $(PROGS64)
94 94
95 95 $(SUBDIRS): FRC
96 96 @cd $@; pwd; $(MAKE) $(TARGET)
97 97
98 98 FRC:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX