Makefile revision 881
# The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # See the License for the specific language governing permissions # and limitations under the License. # When distributing Covered Code, include this CDDL HEADER in each # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. # We want to build hardware specific versions of the longest_match() # function into our shared library that has been hand optimised to use # some machine architecture specific instructions. Currently, we are doing # it for the T4 architecture, but later other architectures may be added. # This is done by taking advantage of the Solaris 11 linker-editor # "Symbol Capabilities" feature. Refer to the section "Creating a Family # of Symbol Capabilities Functions", under "Identifying Capability # Requirements" in the "Linker and Libraries Guide" # Zlib won't build without cloning. We need also to get rid of default # Makefile and get our own version of zconf.h to avoid interactions # between 32 and 64 bit builds. # Also, the x86 architecture does not require alignment for multi-byte # loads, so we can define UNALIGNED_OK for x86 # We need to reset configure options here because zlib is confused with # CC and CFLAGS definitions as configure parameters. # This LDSHARED definitions is forced to get all required options plus # mapfile for result linking. While the one used with configure is just # to allow Zlib detect capability of creating shared libraries.