Makefile revision 606
990b4856d0eaada6f8140335733a1b1771ed2746lling# CDDL HEADER START
990b4856d0eaada6f8140335733a1b1771ed2746lling# The contents of this file are subject to the terms of the
990b4856d0eaada6f8140335733a1b1771ed2746lling# Common Development and Distribution License (the "License").
990b4856d0eaada6f8140335733a1b1771ed2746lling# You may not use this file except in compliance with the License.
990b4856d0eaada6f8140335733a1b1771ed2746lling# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
990b4856d0eaada6f8140335733a1b1771ed2746lling# See the License for the specific language governing permissions
990b4856d0eaada6f8140335733a1b1771ed2746lling# and limitations under the License.
990b4856d0eaada6f8140335733a1b1771ed2746lling# When distributing Covered Code, include this CDDL HEADER in each
990b4856d0eaada6f8140335733a1b1771ed2746lling# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
990b4856d0eaada6f8140335733a1b1771ed2746lling# If applicable, add the following below this CDDL HEADER, with the
990b4856d0eaada6f8140335733a1b1771ed2746lling# fields enclosed by brackets "[]" replaced with your own identifying
990b4856d0eaada6f8140335733a1b1771ed2746lling# information: Portions Copyright [yyyy] [name of copyright owner]
990b4856d0eaada6f8140335733a1b1771ed2746lling# CDDL HEADER END
990b4856d0eaada6f8140335733a1b1771ed2746lling# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
990b4856d0eaada6f8140335733a1b1771ed2746llingCOMPONENT_ARCHIVE_HASH= sha1:60faeaaf250642db5c0ea36cd6dcc9f99c8f3902
990b4856d0eaada6f8140335733a1b1771ed2746llingCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/libpng/zlib/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
990b4856d0eaada6f8140335733a1b1771ed2746lling# Zlib won't build without cloning. We need also to get rid of default
990b4856d0eaada6f8140335733a1b1771ed2746lling# Makefile and get our own version of zlib.h to avoid interactions
990b4856d0eaada6f8140335733a1b1771ed2746lling# between 32 and 64 bit builds.
990b4856d0eaada6f8140335733a1b1771ed2746lling# We need to reset configure options here because zlib is confused with
990b4856d0eaada6f8140335733a1b1771ed2746lling# CC and CFLAGS definitions as configure parameters.
990b4856d0eaada6f8140335733a1b1771ed2746lling# This LDSHARED definitions is forced to get all required options plus
990b4856d0eaada6f8140335733a1b1771ed2746lling# mapfile for result linking. While the one used with configure is just
990b4856d0eaada6f8140335733a1b1771ed2746lling# to allow Zlib detect capability of creating shared libraries.
990b4856d0eaada6f8140335733a1b1771ed2746llingCOMPONENT_BUILD_ARGS = LDSHARED="$(CC) $(CFLAGS) -G -h libz.so.1 $(LD_OPTIONS_SO) -M ../../mapfile -L."