usr/src/cmd/tor/Makefile.sfw
author Cyril Plisko <cyril.plisko@grigale.com>
Sat, 23 Apr 2011 14:19:34 -0700
changeset 76 276c1f9233b3
parent 0 b34509ac961f
permissions -rw-r--r--
Import sfw build 164 Bugs Fixed ---------- 6889771 basic_string constuctor crashes for allocation of 65528 6889785 basic_string::append(char*, pos) crashes for pos==npos 6891101 operator>> incorrectly reports success for input with leading blank 6891240 vector<bool>::at() does not throw out_of_range exception 6891278 operator&&(valarray<bool>, T) gives wrong result 6891667 gslice does not produce correct stride 6891729 copyfmt() with registered callback crashes at run time 6903236 long double quiet NaN has incorrect value 0.0 on x86/x64 6908110 numeric_limits<long double>::infinity() returns 0; it should return infinity 6920783 apache_stdcxx4:some facets classes' declaration not conform to ISO/IEC 14882 spec 6927455 bad code generation for (i &= ~j) 6940401 Ship OpenSSL release 1.0.0 in Solaris 7002820 SUNWlexpt copyright file need to be updated 7012421 <cstdint> should move to ansi include directory 7012426 ios::copyfmt() does not copy format flags correctly 7014576 num_put.cpp:__rw_itoa SEGV when computed base == -1 7017236 wcodecvt.cpp __rw_libc_do_in and __rw_libc_do_out should check for EILSEQ 7020671 18.numeric.special.* tests are incorrect 7020995 ruby 1.8.7-p174 in SFW does not build with OpenSSL 1.0.0 7021009 tor in SFW does not build with OpenSSL 1.0.0 7021113 GnuPG uses both OpenSSL versions 0.9.8 and 1.0.0 if 1.0.0 is put into the proto area 7021746 cups in SFW does not build with 1.0.0 in proto area 7025795 time for the biweekly clean-a-rama 7026022 build CURL with direct binding 7030338 tcsd should protect the system PS key database better 7030813 some of the locale tests are incorrect 7030815 add helper scripts for running the test harness and regression tests 7034003 money_put<>, num_put<> and time_put<> are not thread-safe 7034674 tcsd.conf should restrict PCR usage
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     1
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     2
# CDDL HEADER START
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     3
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     7
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    11
# and limitations under the License.
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    12
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    18
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    19
# CDDL HEADER END
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    20
#
76
276c1f9233b3 Import sfw build 164
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    21
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    22
#
76
276c1f9233b3 Import sfw build 164
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    23
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
276c1f9233b3 Import sfw build 164
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    24
#
276c1f9233b3 Import sfw build 164
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    25
# ident	"@(#)Makefile.sfw	1.3	11/04/07 SMI"
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    26
#
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    27
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    28
include ../Makefile.cmd
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    29
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    30
VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    31
TARBALL = $(VER).tar.gz
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    32
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    33
PATCHES:sh=echo Patches/*.patch
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    34
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    35
LDFLAGS += \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    36
	-L$(ROOT)/usr/lib \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    37
	-M $(SRC)/cmd/mapfile_noexstk \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    38
	-z ignore
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    39
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    40
LIBS=-lnsl -lsocket -lpkcs11
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    41
CONFIGURE_OPTIONS	+= --localstatedir=/var
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    42
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    43
all: $(VER)/config.status
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    44
	(cd $(VER); env - $(CCSMAKE) MAKE=$(CCSMAKE))
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    45
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    46
install: all
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    47
	$(SHELL) VER=$(VER) ./install-sfw
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    48
76
276c1f9233b3 Import sfw build 164
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    49
# Tor's configure script builds a small program linked against OpenSSL and tries
276c1f9233b3 Import sfw build 164
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    50
# to execute it. And given that Tor is built against headers and libraries in
276c1f9233b3 Import sfw build 164
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    51
# the proto area we need to pass LD_LIBRARY_PATH variable to the configure
276c1f9233b3 Import sfw build 164
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    52
# script so that those OpenSSL libraries in the proto/usr/lib can be found by
276c1f9233b3 Import sfw build 164
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    53
# the dynamic linker when executing that sample program.
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    54
$(VER)/config.status: $(VER)/configure
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    55
	(cd $(VER); \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    56
	CC=$(CC) \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    57
	CFLAGS="$(CFLAGS) -DSOLARIS" \
76
276c1f9233b3 Import sfw build 164
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    58
	CPPFLAGS="$(CPPFLAGS)" \
276c1f9233b3 Import sfw build 164
Cyril Plisko <cyril.plisko@grigale.com>
parents: 0
diff changeset
    59
	LD_LIBRARY_PATH="$(ROOTLIB)" \
0
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    60
	LDFLAGS="$(LDFLAGS)" \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    61
	LIBS="$(LIBS)" \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    62
	INSTALL="$(INSTALL_PROTO) -m 755 " \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    63
	CONFDIR=/etc \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    64
	MAKE=$(CCSMAKE) \
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    65
	./configure $(CONFIGURE_OPTIONS);)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    66
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    67
$(VER)/configure: $(VER)/.patched
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    68
	$(TOUCH) $@
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    69
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    70
clean:
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    71
	$(RM) -r $(VER)
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    72
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    73
install_h:
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    74
b34509ac961f Import sfw repo b126
Cyril Plisko <cyril.plisko@grigale.com>
parents:
diff changeset
    75
include ../Makefile.targ