250N/A#
250N/A# CDDL HEADER START
250N/A#
250N/A# The contents of this file are subject to the terms of the
250N/A# Common Development and Distribution License (the "License").
250N/A# You may not use this file except in compliance with the License.
250N/A#
250N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
250N/A# or http://www.opensolaris.org/os/licensing.
250N/A# See the License for the specific language governing permissions
250N/A# and limitations under the License.
250N/A#
250N/A# When distributing Covered Code, include this CDDL HEADER in each
250N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
250N/A# If applicable, add the following below this CDDL HEADER, with the
250N/A# fields enclosed by brackets "[]" replaced with your own identifying
250N/A# information: Portions Copyright [yyyy] [name of copyright owner]
250N/A#
250N/A# CDDL HEADER END
250N/A#
5680N/A
250N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/A# gnupth only delivers scripts that embed paths, so prefer 32-bit.
5680N/ABUILD_BITS= 32_and_64
250N/Ainclude ../../make-rules/shared-macros.mk
250N/A
250N/ACOMPONENT_NAME= pth
250N/ACOMPONENT_VERSION= 2.0.7
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:72353660c5a2caafd601b20e12e75d865fd88f6cf1a088b306a3963f0bc77232
1258N/ACOMPONENT_BUGDB= library/pth
250N/A
2899N/ATPNO= 8899
2899N/A
5680N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
250N/A
250N/APATCH_LEVEL = 0
250N/A
250N/A# Enable C99 mode + -Xc for its additional warnings.
250N/Astudio_C99MODE = -Xc $(studio_C99_ENABLE)
250N/A
250N/A# -xinline=%auto -- we like inlining where appropriate
250N/ACFLAGS += -xinline=%auto
250N/A
250N/A# -xbuiltin=%none -- builtins have been known to be buggy
250N/ACFLAGS += -xbuiltin=%none
250N/A
250N/ACFLAGS += $(CPP_LARGEFILES)
250N/ACFLAGS += $(XPG6MODE)
250N/ACFLAGS += $(CPP_POSIX)
250N/ACFLAGS += $(studio_PIC)
250N/A
250N/ACPPFLAGS += $(CPP_LARGEFILES) $(CPP_POSIX)
250N/A
250N/ALDFLAGS = -lpthread -lposix4 -lrt
250N/A
5680N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
250N/ACONFIGURE_OPTIONS += --with-pic
250N/A
5680N/ACONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
5680N/ACONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
5680N/ACONFIGURE_ENV += INSTALL="$(INSTALL)"
250N/A
5052N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
5052N/ACOMPONENT_TEST_TRANSFORMS += \
5052N/A '-e "s|\(^Pth:\).*|\1|" '
5052N/A
3817N/AREQUIRED_PACKAGES += shell/ksh93