From d468b89caed63c9104dc5d8c24e2330d7177651b Mon Sep 17 00:00:00 2001 From: "margaret.chan%sun.com" Date: Wed, 7 Aug 2002 23:46:20 +0000 Subject: [PATCH] Bug 149152 - Reduce exported functions to facilitate better runtime search. This is to address performance issue for Solaris. Check in once again for Nidheesh Dubey (nidheesh@eng.sun.com). Previous checkin has some editing problem. r=cls. --- build/unix/gnu-ld-scripts/components-mapfile | 5 ----- configure.in | 9 +++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/build/unix/gnu-ld-scripts/components-mapfile b/build/unix/gnu-ld-scripts/components-mapfile index cc17a9f4932..ed06d073930 100644 --- a/build/unix/gnu-ld-scripts/components-mapfile +++ b/build/unix/gnu-ld-scripts/components-mapfile @@ -6,8 +6,3 @@ NSUnregisterSelf; local: *; }; -~ -~ - -~ - diff --git a/configure.in b/configure.in index d4cee365b3a..2ba6e8e9725 100644 --- a/configure.in +++ b/configure.in @@ -1339,6 +1339,15 @@ case "$target" in *-linux*) MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script' ;; + *-solaris*) + if test -z "$GNU_LD"; then + if test -z "$GNU_CC"; then + MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-M $(BUILD_TOOLS)/gnu-ld-scripts/components-mapfile' + else + MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,-M -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-mapfile' + fi + fi + ;; *-nto*) MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script' ;;