e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# CDDL HEADER START
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# The contents of this file are subject to the terms of the
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister# Common Development and Distribution License (the "License").
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister# You may not use this file except in compliance with the License.
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# or http://www.opensolaris.org/os/licensing.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister# fields enclosed by brackets "[]" replaced with your own identifying
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister# information: Portions Copyright [yyyy] [name of copyright owner]
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# CDDL HEADER END
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister#
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
56433595bb938c21fd3b07a0f7c565d942bb8780David Lawrence#
56433595bb938c21fd3b07a0f7c565d942bb8780David LawrenceBUILD_BITS= 64_and_32
3e6b98586e823544344bcbbcad825d3d4485de59David Lawrenceinclude ../../make-rules/shared-macros.mk
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James BristerCOMPONENT_NAME= fastcgi
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James BristerCOMPONENT_VERSION= 2.4.0
364a82f7c25b62967678027043425201a5e5171aBob HalleyCOMPONENT_PROJECT_URL= http://www.fastcgi.com/
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James BristerCOMPONENT_SRC_NAME= fcgi
92ef1a9b9dbd48ecb507b42ac62c15afefdaf838David LawrenceCOMPONENT_ARCHIVE_HASH= \
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence sha256:66fc45c6b36a21bf2fbbb68e90f780cc21a9da1fffbae75e76d2b4402d3f05b9
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James BristerCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dist/$(COMPONENT_ARCHIVE)
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James BristerCOMPONENT_BUGDB= library/fcgi
3e6b98586e823544344bcbbcad825d3d4485de59David Lawrence
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James BristerTPNO= 8415
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James BristerTEST_TARGET= $(NO_TESTS)
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Bristerinclude $(WS_MAKE_RULES)/common.mk
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister
56433595bb938c21fd3b07a0f7c565d942bb8780David Lawrence# Tell libtool to pass this flag through using -Wc.
56433595bb938c21fd3b07a0f7c565d942bb8780David Lawrence# https://www.gnu.org/software/libtool/manual/html_node/Stripped-link-flags.html
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James BristerLDFLAGS += -Wc,$(studio_NORUNPATH)
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James BristerCXX += -std=sun03
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister# For now, install 32-bit and 64-bit binaries to the same location. This will
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister# cause problems if we ever install 32-bit and 64-bit concurrently. This is
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister# likely the safest option until we can either stop shipping 32-bit or until it
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister# can be verified that the bindir path does not matter.
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James BristerCONFIGURE_BINDIR.32= $(USRBINDIR)
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James BristerCONFIGURE_OPTIONS += --disable-static
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James BristerCONFIGURE_OPTIONS += --with-pic
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James BristerCONFIGURE_OPTIONS += --includedir=$(CONFIGURE_INCLUDEDIR)/fastcgi
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James Brister
e32ccd2b77d641bd3fbd8a0e3cbb13136ad44d03James BristerCOMPONENT_PREP_ACTION = (cd $(@D) ; touch NEWS AUTHORS ChangeLog ; autoreconf -if)
e44487bfc23599b6b240e09d83d1c862fecfcc82Michael Graff
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David LawrenceREQUIRED_PACKAGES += system/library/c++-runtime
e44487bfc23599b6b240e09d83d1c862fecfcc82Michael Graff