1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A# Copyright (c) 2004, 2010, Oracle
and/or its affiliates. All rights reserved.
1N/A# When building
libperl.so, hidden command and dependency checking is OK.
1N/A# Library and version.
1N/A# Objects comprising libperl.
1N/A# There should be a mapfile here
1N/A# Disable perl from directly binding to itself, but allow perl to directly bind
1N/A# to its dependencies (ie. map -Bdirect -> -zdirect). Ensure lazy loading is
1N/A# established (which is enabled automatically with -Bdirect).
1N/ALDFLAGS += $(ZLAZYLOAD)
1N/A# Exclude lazy loading guidance messages
1N/AZGUIDANCE = $(ZGUIDANCE_NOLAZYLOAD)
1N/A# Add in the perl-specific flags (including largefile flags).
1N/ACPPFLAGS += $(PERL_COREFLAGS) $(PERL_LFFLAGS)
1N/A# A static version of libperl isn't needed.
1N/AROOTLIBDIR = $(PERL_CORE_DIR)
1N/A# Add in the libraries perl needs to be linked against.
1N/ALDLIBS += $(PERL_LDLIBS)
1N/Aall: $(LIBS) $(LIBLINKS)
1N/A# libperl is installed by the installperl script, which is in turn called by
1N/A# get the links to
libperl.so quite right, so this is fixed up by the
1N/A# By default perl only installs
libperl.so, wheras ON would install
1N/A# The following two rules fix up things so they follow the ON conventions.
1N/A $(RM) -f $(PERL_CORE_DIR)/$(DYNLIB)
1N/A $(MV) $(PERL_CORE_DIR)/$(LIBLINKS) $(PERL_CORE_DIR)/$(DYNLIB)
1N/A $(LN) -s ./$(DYNLIB) $(PERL_CORE_DIR)/$(LIBLINKS)
1N/A $(LN) -s ./$(DYNLIB) $@