Makefile revision 2669
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# CDDL HEADER START
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# The contents of this file are subject to the terms of the
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# Common Development and Distribution License (the "License").
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# You may not use this file except in compliance with the License.
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# See the License for the specific language governing permissions
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# and limitations under the License.
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# When distributing Covered Code, include this CDDL HEADER in each
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# If applicable, add the following below this CDDL HEADER, with the
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# fields enclosed by brackets "[]" replaced with your own identifying
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# information: Portions Copyright [yyyy] [name of copyright owner]
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# CDDL HEADER END
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
11472e48d0b0591b8f3753193304070c6a13cb05Dav GlassCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
11472e48d0b0591b8f3753193304070c6a13cb05Dav GlassCOMPONENT_PROJECT_URL= http://sourceforge.net/projects/trousers/files/trousers/
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass sha256:91025f60248af44df192e8df16fa6b0c0f1e48c54f6dc51626567ed95758b0d6
11472e48d0b0591b8f3753193304070c6a13cb05Dav GlassCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
11472e48d0b0591b8f3753193304070c6a13cb05Dav GlassCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS) -lpthread -lbsm -lscf -lresolv"
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# Enable ASLR for this component
11472e48d0b0591b8f3753193304070c6a13cb05Dav GlassCOMPONENT_POST_CONFIGURE_ACTION = (cd $(COMPONENT_SRC); \
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# We had to use cc as the linker (see CONFIGURE_OPTIONS above) so the
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# .init and .fini sections get set correctly. Because we use cc, we
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# must pass the -m64 flag through cc to the linker when building 64 bit
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# libraries. We can't just add it to LDFLAGS because then it gets used
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# when creating executables and static libs and generates lots of noise
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# in the build logs. LDARCHFLAG is only recognized by the Makefile in
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# the src/tspi directory.
11472e48d0b0591b8f3753193304070c6a13cb05Dav GlassCOMPONENT_BUILD_ENV.64 += LDARCHFLAG="-Wl,$(CC_BITS)"
11472e48d0b0591b8f3753193304070c6a13cb05Dav Glass# common targets