mapfiles.patch revision 1333
965N/A# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
98N/A#
98N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A# and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A#
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# Software.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
606N/Adiff -urp -x '*~' -x '*.orig' src/Makefile.am src/Makefile.am
606N/A--- src/Makefile.am 2008-03-19 07:29:23.000000000 -0700
606N/A+++ src/Makefile.am 2009-01-10 19:15:45.025364000 -0800
705N/A@@ -57,3 +57,41 @@ cirrus_laguna_la_SOURCES = \
98N/A lg_i2c.c \
98N/A lg_xaa.c \
98N/A lg_xaa.h
98N/A+
98N/A+
98N/A+# Generate linker mapfiles for symbols found in other modules and use them
98N/A+# and library flag additions to make sure all symbols are resolvable
98N/A+
98N/A+MAPFILES = \
98N/A+ mapfile-cirrus_drv-external \
98N/A+ mapfile-cirrus_alpine-external \
98N/A+ mapfile-cirrus_laguna-external
98N/A+
98N/A+BUILT_SOURCES = $(MAPFILES)
98N/A+
98N/A+cirrus_drv_la_LDFLAGS += \
98N/A+ -Wl,-M,mapfile-cirrus_alpine-external \
98N/A+ -Wl,-M,mapfile-cirrus_laguna-external \
965N/A+ -lpciaccess -lvgahw -lvbe
98N/A+
98N/A+cirrus_alpine_la_LDFLAGS += \
98N/A+ -Wl,-M,mapfile-cirrus_drv-external \
1333N/A+ -lfb -lint10 -lpciaccess -lshadowfb -lvgahw
98N/A+
98N/A+cirrus_laguna_la_LDFLAGS += \
98N/A+ -Wl,-M,mapfile-cirrus_drv-external \
1333N/A+ -lfb -lint10 -lvgahw
98N/A+
98N/A+mapfiles: $(MAPFILES)
98N/A+
98N/A+mapfile-cirrus_drv-external: $(cirrus_drv_la_OBJECTS)
98N/A+mapfile-cirrus_alpine-external: $(cirrus_alpine_la_OBJECTS)
98N/A+mapfile-cirrus_laguna-external: $(cirrus_laguna_la_OBJECTS)
98N/A+
98N/A+mapfile-%-external:
98N/A+ -rm -f $@
98N/A+ printf '# Functions exported to loadable modules\n\n' > $@
98N/A+ printf '{\n global:\n' >> $@
98N/A+ /usr/ccs/bin/nm -g $? | grep -v UNDEF | sed -n -e 's/^.*\|FUNC \|GLOB \|.*\|\(.*\)$$/ \1 = FUNCTION extern;/p' -e 's/^.*\|OBJT \|GLOB \|.*\|\(.*\)$$/ \1 = DATA extern;/p' >> $@
98N/A+ printf '};\n' >> $@
98N/A+