Remove some old patches
This commit is contained in:
parent
3a5e2d3e78
commit
cc0dfe0fb8
@ -1,152 +0,0 @@
|
|||||||
--- mozilla/gfx/src/gtk/nsFontMetricsPango.cpp.foo2 2005-06-20 13:12:24.000000000 -0400
|
|
||||||
+++ mozilla/gfx/src/gtk/nsFontMetricsPango.cpp 2005-06-20 10:16:59.000000000 -0400
|
|
||||||
@@ -53,7 +53,6 @@
|
|
||||||
#include "nsUnicharUtils.h"
|
|
||||||
#include "nsQuickSort.h"
|
|
||||||
|
|
||||||
-#include <pango/pangoxft.h>
|
|
||||||
#include <fontconfig/fontconfig.h>
|
|
||||||
#include <gdk/gdk.h>
|
|
||||||
#include <gdk/gdkx.h>
|
|
||||||
@@ -301,12 +300,11 @@
|
|
||||||
|
|
||||||
// Get our font face
|
|
||||||
FT_Face face;
|
|
||||||
+ face = pango_fc_font_lock_face(fcfont);
|
|
||||||
+ if (!face)
|
|
||||||
+ return NS_ERROR_NOT_AVAILABLE;
|
|
||||||
+
|
|
||||||
TT_OS2 *os2;
|
|
||||||
- XftFont *xftFont = pango_xft_font_get_font(PANGO_FONT(fcfont));
|
|
||||||
- if (!xftFont)
|
|
||||||
- return NS_ERROR_NOT_AVAILABLE;
|
|
||||||
-
|
|
||||||
- face = XftLockFace(xftFont);
|
|
||||||
os2 = (TT_OS2 *) FT_Get_Sfnt_Table(face, ft_sfnt_os2);
|
|
||||||
|
|
||||||
// mEmHeight (size in pixels of EM height)
|
|
||||||
@@ -318,10 +316,12 @@
|
|
||||||
mEmHeight = PR_MAX(1, nscoord(size * f));
|
|
||||||
|
|
||||||
// mMaxAscent
|
|
||||||
- mMaxAscent = nscoord(xftFont->ascent * f);
|
|
||||||
+ val = MOZ_FT_TRUNC(face->size->metrics.ascender);
|
|
||||||
+ mMaxAscent = NSToIntRound(val * f);
|
|
||||||
|
|
||||||
// mMaxDescent
|
|
||||||
- mMaxDescent = nscoord(xftFont->descent * f);
|
|
||||||
+ val = -MOZ_FT_TRUNC(face->size->metrics.descender);
|
|
||||||
+ mMaxDescent = NSToIntRound(val * f);
|
|
||||||
|
|
||||||
nscoord lineHeight = mMaxAscent + mMaxDescent;
|
|
||||||
|
|
||||||
@@ -341,7 +341,8 @@
|
|
||||||
mEmDescent = mEmHeight - mEmAscent;
|
|
||||||
|
|
||||||
// mMaxAdvance
|
|
||||||
- mMaxAdvance = nscoord(xftFont->max_advance_width * f);
|
|
||||||
+ val = MOZ_FT_TRUNC(face->size->metrics.max_advance);
|
|
||||||
+ mMaxAdvance = NSToIntRound(val * f);
|
|
||||||
|
|
||||||
// mPangoSpaceWidth
|
|
||||||
PangoLayout *layout = pango_layout_new(mPangoContext);
|
|
||||||
@@ -364,17 +365,16 @@
|
|
||||||
mAveCharWidth = tmpWidth;
|
|
||||||
|
|
||||||
// mXHeight (height of an 'x' character)
|
|
||||||
- PRUnichar xUnichar('x');
|
|
||||||
- XGlyphInfo extents;
|
|
||||||
- if (FcCharSetHasChar(xftFont->charset, xUnichar)) {
|
|
||||||
- XftTextExtents16(GDK_DISPLAY(), xftFont, &xUnichar, 1, &extents);
|
|
||||||
- mXHeight = extents.height;
|
|
||||||
+ if (pango_fc_font_has_char(fcfont, 'x')) {
|
|
||||||
+ PangoRectangle rect;
|
|
||||||
+ PangoGlyph glyph = pango_fc_font_get_glyph (fcfont, 'x');
|
|
||||||
+ pango_font_get_glyph_extents (PANGO_FONT (fcfont), glyph, &rect, NULL);
|
|
||||||
+ mXHeight = NSToIntRound(rect.height * f / PANGO_SCALE);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
// 56% of ascent, best guess for non-true type or asian fonts
|
|
||||||
- mXHeight = nscoord(((float)mMaxAscent) * 0.56);
|
|
||||||
+ mXHeight = nscoord(((float)mMaxAscent) * 0.56 * f);
|
|
||||||
}
|
|
||||||
- mXHeight = nscoord(mXHeight * f);
|
|
||||||
|
|
||||||
// mUnderlineOffset (offset for underlines)
|
|
||||||
val = CONVERT_DESIGN_UNITS_TO_PIXELS(face->underline_position,
|
|
||||||
@@ -384,7 +394,8 @@
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
mUnderlineOffset =
|
|
||||||
- -NSToIntRound(PR_MAX(1, floor(0.1 * xftFont->height + 0.5)) * f);
|
|
||||||
+ -NSToIntRound(PR_MAX(1, floor(0.1 *
|
|
||||||
+ MOZ_FT_TRUNC(face->size->metrics.height) + 0.5)) * f);
|
|
||||||
}
|
|
||||||
|
|
||||||
// mUnderlineSize (thickness of an underline)
|
|
||||||
@@ -395,7 +406,8 @@
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
mUnderlineSize =
|
|
||||||
- NSToIntRound(PR_MAX(1, floor(0.05 * xftFont->height + 0.5)) * f);
|
|
||||||
+ NSToIntRound(PR_MAX(1,
|
|
||||||
+ floor(0.05 * MOZ_FT_TRUNC(face->size->metrics.height) + 0.5)) * f);
|
|
||||||
}
|
|
||||||
|
|
||||||
// mSuperscriptOffset
|
|
||||||
@@ -426,7 +438,7 @@
|
|
||||||
// mStrikeoutSize
|
|
||||||
mStrikeoutSize = mUnderlineSize;
|
|
||||||
|
|
||||||
- XftUnlockFace(xftFont);
|
|
||||||
+ pango_fc_font_unlock_face(fcfont);
|
|
||||||
|
|
||||||
/*
|
|
||||||
printf("%i\n", mXHeight);
|
|
||||||
@@ -893,7 +905,7 @@
|
|
||||||
{
|
|
||||||
if (aIsRTL) {
|
|
||||||
if (!mRTLPangoContext) {
|
|
||||||
- mRTLPangoContext = pango_xft_get_context(GDK_DISPLAY(), 0);
|
|
||||||
+ mRTLPangoContext = gdk_pango_context_get();
|
|
||||||
pango_context_set_base_dir(mRTLPangoContext, PANGO_DIRECTION_RTL);
|
|
||||||
|
|
||||||
gdk_pango_context_set_colormap(mRTLPangoContext, gdk_rgb_get_cmap());
|
|
||||||
@@ -1163,7 +1175,7 @@
|
|
||||||
NS_ConvertUCS2toUTF8 name(aName);
|
|
||||||
|
|
||||||
nsresult rv = NS_ERROR_FAILURE;
|
|
||||||
- PangoContext *context = pango_xft_get_context(GDK_DISPLAY(), 0);
|
|
||||||
+ PangoContext *context = gdk_pango_context_get();
|
|
||||||
PangoFontFamily **familyList;
|
|
||||||
int n;
|
|
||||||
|
|
||||||
@@ -1262,7 +1274,7 @@
|
|
||||||
|
|
||||||
// Now that we have the font description set up, create the
|
|
||||||
// context.
|
|
||||||
- mLTRPangoContext = pango_xft_get_context(GDK_DISPLAY(), 0);
|
|
||||||
+ mLTRPangoContext = gdk_pango_context_get();
|
|
||||||
mPangoContext = mLTRPangoContext;
|
|
||||||
|
|
||||||
// Make sure to set the base direction to LTR - if layout needs to
|
|
||||||
--- mozilla/gfx/src/gtk/mozilla-decoder.cpp.noxft 2005-08-18 22:41:26.000000000 -0400
|
|
||||||
+++ mozilla/gfx/src/gtk/mozilla-decoder.cpp 2005-08-18 22:38:01.000000000 -0400
|
|
||||||
@@ -40,7 +40,7 @@
|
|
||||||
#define PANGO_ENABLE_ENGINE
|
|
||||||
|
|
||||||
#include "mozilla-decoder.h"
|
|
||||||
-#include <pango/pangoxft.h>
|
|
||||||
+#include <pango/pangocairo.h>
|
|
||||||
#include <pango/pangofc-fontmap.h>
|
|
||||||
#include <pango/pangofc-font.h>
|
|
||||||
#include <gdk/gdkx.h>
|
|
||||||
@@ -208,7 +208,7 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
- pango_fc_font_map_add_decoder_find_func(PANGO_FC_FONT_MAP(pango_xft_get_font_map(GDK_DISPLAY(),gdk_x11_get_default_screen())),
|
|
||||||
+ pango_fc_font_map_add_decoder_find_func(PANGO_FC_FONT_MAP(pango_cairo_font_map_get_default()),
|
|
||||||
mozilla_find_decoder,
|
|
||||||
NULL,
|
|
||||||
NULL);
|
|
@ -1,66 +0,0 @@
|
|||||||
Index: widget/src/gtk2/nsFilePicker.cpp
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvsroot/mozilla/widget/src/gtk2/nsFilePicker.cpp,v
|
|
||||||
retrieving revision 1.10
|
|
||||||
diff -p -u -u -p -U10 -r1.10 nsFilePicker.cpp
|
|
||||||
--- widget/src/gtk2/nsFilePicker.cpp 1 Jul 2005 04:40:30 -0000 1.10
|
|
||||||
+++ widget/src/gtk2/nsFilePicker.cpp 16 Jul 2005 08:39:26 -0000
|
|
||||||
@@ -457,28 +457,32 @@ confirm_overwrite_file (GtkWidget *paren
|
|
||||||
leafName.get()
|
|
||||||
};
|
|
||||||
|
|
||||||
nsXPIDLString title, message;
|
|
||||||
bundle->GetStringFromName(NS_LITERAL_STRING("confirmTitle").get(),
|
|
||||||
getter_Copies(title));
|
|
||||||
bundle->FormatStringFromName(NS_LITERAL_STRING("confirmFileReplacing").get(),
|
|
||||||
formatStrings, NS_ARRAY_LENGTH(formatStrings),
|
|
||||||
getter_Copies(message));
|
|
||||||
|
|
||||||
+ GtkWindow *parent_window = GTK_WINDOW(parent);
|
|
||||||
GtkWidget *dialog;
|
|
||||||
|
|
||||||
- dialog = gtk_message_dialog_new(GTK_WINDOW(parent),
|
|
||||||
+ dialog = gtk_message_dialog_new(parent_window,
|
|
||||||
GTK_DIALOG_DESTROY_WITH_PARENT,
|
|
||||||
GTK_MESSAGE_QUESTION,
|
|
||||||
GTK_BUTTONS_YES_NO,
|
|
||||||
NS_ConvertUTF16toUTF8(message).get());
|
|
||||||
gtk_window_set_title(GTK_WINDOW(dialog), NS_ConvertUTF16toUTF8(title).get());
|
|
||||||
+ if (parent_window && parent_window->group) {
|
|
||||||
+ gtk_window_group_add_window(parent_window->group, GTK_WINDOW(dialog));
|
|
||||||
+ }
|
|
||||||
|
|
||||||
PRBool result = (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_YES);
|
|
||||||
gtk_widget_destroy (dialog);
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
nsFilePicker::Show(PRInt16 *aReturn)
|
|
||||||
{
|
|
||||||
@@ -491,20 +495,24 @@ nsFilePicker::Show(PRInt16 *aReturn)
|
|
||||||
|
|
||||||
GtkFileChooserAction action = GetGtkFileChooserAction(mMode);
|
|
||||||
const gchar *accept_button = (mMode == GTK_FILE_CHOOSER_ACTION_SAVE)
|
|
||||||
? GTK_STOCK_SAVE : GTK_STOCK_OPEN;
|
|
||||||
GtkWidget *file_chooser =
|
|
||||||
_gtk_file_chooser_dialog_new(title, parent_widget, action,
|
|
||||||
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
|
|
||||||
accept_button, GTK_RESPONSE_ACCEPT,
|
|
||||||
NULL);
|
|
||||||
|
|
||||||
+ if (parent_widget && parent_widget->group) {
|
|
||||||
+ gtk_window_group_add_window(parent_widget->group, GTK_WINDOW(file_chooser));
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
if (mMode == nsIFilePicker::modeOpenMultiple) {
|
|
||||||
_gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER(file_chooser), TRUE);
|
|
||||||
} else if (mMode == nsIFilePicker::modeSave) {
|
|
||||||
char *default_filename = ToNewUTF8String(mDefault);
|
|
||||||
_gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(file_chooser),
|
|
||||||
NS_STATIC_CAST(const gchar*, default_filename));
|
|
||||||
nsMemory::Free(default_filename);
|
|
||||||
}
|
|
||||||
|
|
||||||
gtk_dialog_set_default_response(GTK_DIALOG(file_chooser), GTK_RESPONSE_ACCEPT);
|
|
@ -1,22 +0,0 @@
|
|||||||
Index: configure
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvsroot/mozilla/configure,v
|
|
||||||
retrieving revision 1.1443
|
|
||||||
diff -u -p -6 -r1.1443 configure
|
|
||||||
--- configure 2 Jun 2005 04:00:20 -0000 1.1443
|
|
||||||
+++ configure 6 Jun 2005 07:34:06 -0000
|
|
||||||
@@ -7303,13 +7303,13 @@ else
|
|
||||||
int foo_default = 1;
|
|
||||||
EOF
|
|
||||||
ac_cv_visibility_pragma=no
|
|
||||||
if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
|
|
||||||
if grep '\.hidden.*foo_hidden' conftest.s >/dev/null; then
|
|
||||||
if ! grep '\.hidden.*foo_default' conftest.s > /dev/null; then
|
|
||||||
- ac_cv_visibility_pragma=yes
|
|
||||||
+ ac_cv_visibility_pragma=no
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
rm -f conftest.cs
|
|
||||||
|
|
||||||
fi
|
|
@ -1,25 +0,0 @@
|
|||||||
See https://bugzilla.mozilla.org/show_bug.cgi?id=367203
|
|
||||||
|
|
||||||
Index: mozilla/widget/src/gtk2/nsDragService.cpp
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvsroot/mozilla/widget/src/gtk2/nsDragService.cpp,v
|
|
||||||
retrieving revision 1.9.10.1
|
|
||||||
diff -d -u -p -r1.9.10.1 nsDragService.cpp
|
|
||||||
--- mozilla/widget/src/gtk2/nsDragService.cpp 22 Jun 2006 21:37:45 -0000 1.9.10.1
|
|
||||||
+++ mozilla/widget/src/gtk2/nsDragService.cpp 31 Jan 2007 04:27:43 -0000
|
|
||||||
@@ -799,7 +799,6 @@ nsDragService::IsTargetContextList(void)
|
|
||||||
void
|
|
||||||
nsDragService::GetTargetDragData(GdkAtom aFlavor)
|
|
||||||
{
|
|
||||||
- gtk_grab_add(mHiddenWidget);
|
|
||||||
PR_LOG(sDragLm, PR_LOG_DEBUG, ("getting data flavor %d\n", aFlavor));
|
|
||||||
PR_LOG(sDragLm, PR_LOG_DEBUG, ("mLastWidget is %p and mLastContext is %p\n",
|
|
||||||
mTargetWidget, mTargetDragContext));
|
|
||||||
@@ -817,7 +816,6 @@ nsDragService::GetTargetDragData(GdkAtom
|
|
||||||
gtk_main_iteration();
|
|
||||||
}
|
|
||||||
PR_LOG(sDragLm, PR_LOG_DEBUG, ("finished inner iteration\n"));
|
|
||||||
- gtk_grab_remove(mHiddenWidget);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
@ -1,27 +0,0 @@
|
|||||||
Index: widget/src/gtk2/nsWindow.cpp
|
|
||||||
===================================================================
|
|
||||||
RCS file: /cvsroot/mozilla/widget/src/gtk2/nsWindow.cpp,v
|
|
||||||
retrieving revision 1.185
|
|
||||||
diff -u -8 -p -r1.185 nsWindow.cpp
|
|
||||||
--- widget/src/gtk2/nsWindow.cpp 20 Sep 2006 19:16:19 -0000 1.185
|
|
||||||
+++ widget/src/gtk2/nsWindow.cpp 22 Sep 2006 05:07:04 -0000
|
|
||||||
@@ -2859,19 +2859,16 @@ nsWindow::NativeCreate(nsIWidget
|
|
||||||
g_signal_connect(G_OBJECT(mShell), "window_state_event",
|
|
||||||
G_CALLBACK(window_state_event_cb), NULL);
|
|
||||||
|
|
||||||
GtkSettings* default_settings = gtk_settings_get_default();
|
|
||||||
g_signal_connect_after(default_settings,
|
|
||||||
"notify::gtk-theme-name",
|
|
||||||
G_CALLBACK(theme_changed_cb), this);
|
|
||||||
g_signal_connect_after(default_settings,
|
|
||||||
- "notify::gtk-key-theme-name",
|
|
||||||
- G_CALLBACK(theme_changed_cb), this);
|
|
||||||
- g_signal_connect_after(default_settings,
|
|
||||||
"notify::gtk-font-name",
|
|
||||||
G_CALLBACK(theme_changed_cb), this);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mContainer) {
|
|
||||||
g_signal_connect_after(G_OBJECT(mContainer), "size_allocate",
|
|
||||||
G_CALLBACK(size_allocate_cb), NULL);
|
|
||||||
g_signal_connect(G_OBJECT(mContainer), "expose_event",
|
|
@ -1,40 +0,0 @@
|
|||||||
--- mozilla/security/coreconf/location.mk.old 2007-02-13 21:41:48.000000000 +0100
|
|
||||||
+++ mozilla/security/coreconf/location.mk 2007-02-15 16:52:03.000000000 +0100
|
|
||||||
@@ -61,6 +61,8 @@
|
|
||||||
|
|
||||||
DIST = $(SOURCE_PREFIX)/$(PLATFORM)
|
|
||||||
|
|
||||||
+NSPR_LIBDIR = $(DIST)/lib
|
|
||||||
+
|
|
||||||
ifdef BUILD_DEBUG_GC
|
|
||||||
DEFINES += -DDEBUG_GC
|
|
||||||
endif
|
|
||||||
--- mozilla/security/manager/Makefile.in.old 2007-02-13 21:43:11.000000000 +0100
|
|
||||||
+++ mozilla/security/manager/Makefile.in 2007-02-16 13:58:31.000000000 +0100
|
|
||||||
@@ -115,12 +115,23 @@
|
|
||||||
FREEBL_64FPU_CHK = libfreebl_64fpu_3.chk
|
|
||||||
endif
|
|
||||||
|
|
||||||
+ABS_DIST := $(shell cd $(DIST) && pwd)
|
|
||||||
+ifeq ($(OS_ARCH),WINNT)
|
|
||||||
+ABS_DIST := $(shell cygpath -w $(ABS_DIST) | sed -e 's|\\\\|/|g')
|
|
||||||
+endif
|
|
||||||
+NSPR_LIBDIR = $(firstword $(filter -L%,$(NSPR_LIBS)))
|
|
||||||
+ifneq (,$(strip $(NSPR_LIBDIR)))
|
|
||||||
+NSPR_LIBDIR := $(subst -L,,$(subst -L$(DIST),-L$(ABS_DIST),$(NSPR_LIBDIR)))
|
|
||||||
+else
|
|
||||||
+NSPR_LIBDIR = $(ABS_DIST)/lib
|
|
||||||
+endif
|
|
||||||
# NSS makefiles are not safe for parallel execution.
|
|
||||||
DEFAULT_GMAKE_FLAGS = MAKE="$(MAKE) -j1" -j1
|
|
||||||
DEFAULT_GMAKE_FLAGS += CC="$(CC)"
|
|
||||||
-DEFAULT_GMAKE_FLAGS += MOZILLA_INCLUDES="-I$(MOZ_BUILD_ROOT)/dist/include/nspr -I$(MOZ_BUILD_ROOT)/dist/include/dbm"
|
|
||||||
-DEFAULT_GMAKE_FLAGS += SOURCE_MD_DIR=$(MOZ_BUILD_ROOT)/dist
|
|
||||||
-DEFAULT_GMAKE_FLAGS += DIST=$(MOZ_BUILD_ROOT)/dist
|
|
||||||
+DEFAULT_GMAKE_FLAGS += MOZILLA_INCLUDES="$(subst -I$(DIST),-I$(ABS_DIST),$(NSPR_CFLAGS) -I$(DIST)/include/dbm)"
|
|
||||||
+DEFAULT_GMAKE_FLAGS += SOURCE_MD_DIR=$(ABS_DIST)
|
|
||||||
+DEFAULT_GMAKE_FLAGS += DIST=$(ABS_DIST)
|
|
||||||
+DEFAULT_GMAKE_FLAGS += NSPR_LIBDIR=$(NSPR_LIBDIR)
|
|
||||||
DEFAULT_GMAKE_FLAGS += MOZILLA_CLIENT=1
|
|
||||||
DEFAULT_GMAKE_FLAGS += NO_MDUPDATE=1
|
|
||||||
ABS_topsrcdir := $(shell cd $(topsrcdir); pwd)
|
|
@ -1,583 +0,0 @@
|
|||||||
--- mozilla/configure.in.ccc 2006-08-31 17:37:23.000000000 +0200
|
|
||||||
+++ mozilla/configure.in 2007-02-22 14:42:15.000000000 +0100
|
|
||||||
@@ -86,6 +86,7 @@
|
|
||||||
MOZPNG=10207
|
|
||||||
MOZZLIB=1.2.3
|
|
||||||
NSPR_VERSION=4
|
|
||||||
+NSS_VERSION=3
|
|
||||||
|
|
||||||
dnl Set the minimum version of toolkit libs used by mozilla
|
|
||||||
dnl ========================================================
|
|
||||||
@@ -3537,6 +3538,19 @@
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
+dnl ========================================================
|
|
||||||
+dnl = If NSS was not detected in the system,
|
|
||||||
+dnl = use the one in the source tree (mozilla/security/nss)
|
|
||||||
+dnl ========================================================
|
|
||||||
+
|
|
||||||
+MOZ_ARG_WITH_BOOL(system-nss,
|
|
||||||
+[ --with-system-nss Use system installed NSS],
|
|
||||||
+ _USE_SYSTEM_NSS=1 )
|
|
||||||
+
|
|
||||||
+if test -n "$_USE_SYSTEM_NSS"; then
|
|
||||||
+ AM_PATH_NSS(3.0.0, [MOZ_NATIVE_NSS=1], [MOZ_NATIVE_NSS=])
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
if test -z "$SKIP_LIBRARY_CHECKS"; then
|
|
||||||
dnl system JPEG support
|
|
||||||
dnl ========================================================
|
|
||||||
@@ -6783,6 +6797,10 @@
|
|
||||||
AC_SUBST(NSPR_LIBS)
|
|
||||||
AC_SUBST(MOZ_NATIVE_NSPR)
|
|
||||||
|
|
||||||
+AC_SUBST(NSS_CFLAGS)
|
|
||||||
+AC_SUBST(NSS_LIBS)
|
|
||||||
+AC_SUBST(MOZ_NATIVE_NSS)
|
|
||||||
+
|
|
||||||
AC_SUBST(CFLAGS)
|
|
||||||
AC_SUBST(CXXFLAGS)
|
|
||||||
AC_SUBST(CPPFLAGS)
|
|
||||||
--- mozilla/config/autoconf.mk.in.ccc 2006-04-21 22:50:30.000000000 +0200
|
|
||||||
+++ mozilla/config/autoconf.mk.in 2007-02-22 14:42:14.000000000 +0100
|
|
||||||
@@ -231,6 +231,7 @@
|
|
||||||
MOZ_INSURE_EXCLUDE_DIRS = @MOZ_INSURE_EXCLUDE_DIRS@
|
|
||||||
|
|
||||||
MOZ_NATIVE_NSPR = @MOZ_NATIVE_NSPR@
|
|
||||||
+MOZ_NATIVE_NSS = @MOZ_NATIVE_NSS@
|
|
||||||
|
|
||||||
CROSS_COMPILE = @CROSS_COMPILE@
|
|
||||||
|
|
||||||
@@ -386,6 +387,48 @@
|
|
||||||
NSPR_CFLAGS = @NSPR_CFLAGS@
|
|
||||||
NSPR_LIBS = @NSPR_LIBS@
|
|
||||||
|
|
||||||
+NSS_CONFIG = @NSS_CONFIG@
|
|
||||||
+NSS_CFLAGS = @NSS_CFLAGS@
|
|
||||||
+NSS_LIBS = @NSS_LIBS@
|
|
||||||
+
|
|
||||||
+ifdef MOZ_NATIVE_NSS
|
|
||||||
+NSS_DEP_LIBS = \
|
|
||||||
+ $(NULL)
|
|
||||||
+NSS_LIBS += \
|
|
||||||
+ -lcrmf \
|
|
||||||
+ $(NULL)
|
|
||||||
+else
|
|
||||||
+NSS_DEP_LIBS = \
|
|
||||||
+ $(DIST)/lib/$(LIB_PREFIX)crmf.$(LIB_SUFFIX) \
|
|
||||||
+ $(DIST)/lib/$(DLL_PREFIX)smime3$(DLL_SUFFIX) \
|
|
||||||
+ $(DIST)/lib/$(DLL_PREFIX)ssl3$(DLL_SUFFIX) \
|
|
||||||
+ $(DIST)/lib/$(DLL_PREFIX)nss3$(DLL_SUFFIX) \
|
|
||||||
+ $(DIST)/lib/$(DLL_PREFIX)softokn3$(DLL_SUFFIX) \
|
|
||||||
+ $(NULL)
|
|
||||||
+NSS_LIBS = \
|
|
||||||
+ $(LIBS_DIR) \
|
|
||||||
+ $(DIST)/lib/$(LIB_PREFIX)crmf.$(LIB_SUFFIX) \
|
|
||||||
+ -lsmime3 \
|
|
||||||
+ -lssl3 \
|
|
||||||
+ -lnss3 \
|
|
||||||
+ -lsoftokn3 \
|
|
||||||
+ $(NULL)
|
|
||||||
+endif
|
|
||||||
+
|
|
||||||
+ifneq (,$(filter OS2 WINNT WINCE, $(OS_ARCH)))
|
|
||||||
+ifndef GNU_CC
|
|
||||||
+ifndef MOZ_NATIVE_NSS
|
|
||||||
+NSS_LIBS = \
|
|
||||||
+ $(DIST)/lib/$(LIB_PREFIX)crmf.$(LIB_SUFFIX) \
|
|
||||||
+ $(DIST)/lib/$(LIB_PREFIX)smime3.$(IMPORT_LIB_SUFFIX) \
|
|
||||||
+ $(DIST)/lib/$(LIB_PREFIX)ssl3.$(IMPORT_LIB_SUFFIX) \
|
|
||||||
+ $(DIST)/lib/$(LIB_PREFIX)nss3.$(IMPORT_LIB_SUFFIX) \
|
|
||||||
+ $(DIST)/lib/$(LIB_PREFIX)softokn3.$(IMPORT_LIB_SUFFIX) \
|
|
||||||
+ $(NULL)
|
|
||||||
+endif
|
|
||||||
+endif
|
|
||||||
+endif
|
|
||||||
+
|
|
||||||
LDAP_CFLAGS = @LDAP_CFLAGS@
|
|
||||||
LDAP_LIBS = @LDAP_LIBS@
|
|
||||||
XPCOM_GLUE_LDOPTS = @XPCOM_GLUE_LDOPTS@
|
|
||||||
--- mozilla/config/config.mk.ccc 2006-04-06 18:28:13.000000000 +0200
|
|
||||||
+++ mozilla/config/config.mk 2007-02-22 14:42:14.000000000 +0100
|
|
||||||
@@ -138,39 +138,6 @@
|
|
||||||
FINAL_LINK_COMPS = $(DEPTH)/config/final-link-comps
|
|
||||||
FINAL_LINK_COMP_NAMES = $(DEPTH)/config/final-link-comp-names
|
|
||||||
|
|
||||||
-#
|
|
||||||
-# NSS libs needed for final link in static build
|
|
||||||
-#
|
|
||||||
-
|
|
||||||
-NSS_LIBS = \
|
|
||||||
- $(LIBS_DIR) \
|
|
||||||
- $(DIST)/lib/$(LIB_PREFIX)crmf.$(LIB_SUFFIX) \
|
|
||||||
- -lsmime3 \
|
|
||||||
- -lssl3 \
|
|
||||||
- -lnss3 \
|
|
||||||
- -lsoftokn3 \
|
|
||||||
- $(NULL)
|
|
||||||
-
|
|
||||||
-ifneq (,$(filter OS2 WINNT WINCE, $(OS_ARCH)))
|
|
||||||
-ifndef GNU_CC
|
|
||||||
-NSS_LIBS = \
|
|
||||||
- $(DIST)/lib/$(LIB_PREFIX)crmf.$(LIB_SUFFIX) \
|
|
||||||
- $(DIST)/lib/$(LIB_PREFIX)smime3.$(IMPORT_LIB_SUFFIX) \
|
|
||||||
- $(DIST)/lib/$(LIB_PREFIX)ssl3.$(IMPORT_LIB_SUFFIX) \
|
|
||||||
- $(DIST)/lib/$(LIB_PREFIX)nss3.$(IMPORT_LIB_SUFFIX) \
|
|
||||||
- $(DIST)/lib/$(LIB_PREFIX)softokn3.$(IMPORT_LIB_SUFFIX) \
|
|
||||||
- $(NULL)
|
|
||||||
-endif
|
|
||||||
-endif
|
|
||||||
-
|
|
||||||
-NSS_DEP_LIBS = \
|
|
||||||
- $(DIST)/lib/$(LIB_PREFIX)crmf.$(LIB_SUFFIX) \
|
|
||||||
- $(DIST)/lib/$(DLL_PREFIX)smime3$(DLL_SUFFIX) \
|
|
||||||
- $(DIST)/lib/$(DLL_PREFIX)ssl3$(DLL_SUFFIX) \
|
|
||||||
- $(DIST)/lib/$(DLL_PREFIX)nss3$(DLL_SUFFIX) \
|
|
||||||
- $(DIST)/lib/$(DLL_PREFIX)softokn3$(DLL_SUFFIX) \
|
|
||||||
- $(NULL)
|
|
||||||
-
|
|
||||||
MOZ_UNICHARUTIL_LIBS = $(DIST)/lib/$(LIB_PREFIX)unicharutil_s.$(LIB_SUFFIX)
|
|
||||||
MOZ_REGISTRY_LIBS = $(DIST)/lib/$(LIB_PREFIX)mozreg_s.$(LIB_SUFFIX)
|
|
||||||
MOZ_WIDGET_SUPPORT_LIBS = $(DIST)/lib/$(LIB_PREFIX)widgetsupport_s.$(LIB_SUFFIX)
|
|
||||||
--- mozilla/aclocal.m4.ccc 2004-05-13 05:12:47.000000000 +0200
|
|
||||||
+++ mozilla/aclocal.m4 2007-02-22 14:42:14.000000000 +0100
|
|
||||||
@@ -8,6 +8,7 @@
|
|
||||||
builtin(include, build/autoconf/libIDL.m4)dnl
|
|
||||||
builtin(include, build/autoconf/libIDL-2.m4)dnl
|
|
||||||
builtin(include, build/autoconf/nspr.m4)dnl
|
|
||||||
+builtin(include, build/autoconf/nss.m4)dnl
|
|
||||||
builtin(include, build/autoconf/libart.m4)dnl
|
|
||||||
builtin(include, build/autoconf/pkg.m4)dnl
|
|
||||||
builtin(include, build/autoconf/freetype2.m4)dnl
|
|
||||||
--- /dev/null 2007-02-21 10:09:45.647705500 +0100
|
|
||||||
+++ mozilla/build/autoconf/nss.m4 2007-02-22 14:42:15.000000000 +0100
|
|
||||||
@@ -0,0 +1,67 @@
|
|
||||||
+# -*- tab-width: 4; -*-
|
|
||||||
+# Configure paths for NSS
|
|
||||||
+# Public domain - Chris Seawood <cls@seawood.org> 2001-04-05
|
|
||||||
+# Based upon gtk.m4 (also PD) by Owen Taylor
|
|
||||||
+
|
|
||||||
+dnl AM_PATH_NSS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
|
||||||
+dnl Test for NSS, and define NSS_CFLAGS and NSS_LIBS
|
|
||||||
+AC_DEFUN(AM_PATH_NSS,
|
|
||||||
+[dnl
|
|
||||||
+
|
|
||||||
+AC_ARG_WITH(nss-prefix,
|
|
||||||
+ [ --with-nss-prefix=PFX Prefix where NSS is installed],
|
|
||||||
+ nss_config_prefix="$withval",
|
|
||||||
+ nss_config_prefix="")
|
|
||||||
+
|
|
||||||
+AC_ARG_WITH(nss-exec-prefix,
|
|
||||||
+ [ --with-nss-exec-prefix=PFX
|
|
||||||
+ Exec prefix where NSS is installed],
|
|
||||||
+ nss_config_exec_prefix="$withval",
|
|
||||||
+ nss_config_exec_prefix="")
|
|
||||||
+
|
|
||||||
+ if test -n "$nss_config_exec_prefix"; then
|
|
||||||
+ nss_config_args="$nss_config_args --exec-prefix=$nss_config_exec_prefix"
|
|
||||||
+ if test -z "$NSS_CONFIG"; then
|
|
||||||
+ NSS_CONFIG=$nss_config_exec_prefix/bin/nss-config
|
|
||||||
+ fi
|
|
||||||
+ fi
|
|
||||||
+ if test -n "$nss_config_prefix"; then
|
|
||||||
+ nss_config_args="$nss_config_args --prefix=$nss_config_prefix"
|
|
||||||
+ if test -z "$NSS_CONFIG"; then
|
|
||||||
+ NSS_CONFIG=$nss_config_prefix/bin/nss-config
|
|
||||||
+ fi
|
|
||||||
+ fi
|
|
||||||
+
|
|
||||||
+ unset ac_cv_path_NSS_CONFIG
|
|
||||||
+ AC_PATH_PROG(NSS_CONFIG, nss-config, no)
|
|
||||||
+ min_nss_version=ifelse([$1], ,3.0.0,$1)
|
|
||||||
+ AC_MSG_CHECKING(for NSS - version >= $min_nss_version (skipping))
|
|
||||||
+
|
|
||||||
+ no_nss=""
|
|
||||||
+ if test "$NSS_CONFIG" = "no"; then
|
|
||||||
+ no_nss="yes"
|
|
||||||
+ else
|
|
||||||
+ NSS_CFLAGS=`$NSS_CONFIG $nss_config_args --cflags`
|
|
||||||
+ NSS_LIBS=`$NSS_CONFIG $nss_config_args --libs`
|
|
||||||
+
|
|
||||||
+ dnl Skip version check for now
|
|
||||||
+ nss_config_major_version=`$NSS_CONFIG $nss_config_args --version | \
|
|
||||||
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
|
||||||
+ nss_config_minor_version=`$NSS_CONFIG $nss_config_args --version | \
|
|
||||||
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
|
||||||
+ nss_config_micro_version=`$NSS_CONFIG $nss_config_args --version | \
|
|
||||||
+ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
|
||||||
+ fi
|
|
||||||
+
|
|
||||||
+ if test -z "$no_nss"; then
|
|
||||||
+ AC_MSG_RESULT(yes)
|
|
||||||
+ ifelse([$2], , :, [$2])
|
|
||||||
+ else
|
|
||||||
+ AC_MSG_RESULT(no)
|
|
||||||
+ fi
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+ AC_SUBST(NSS_CFLAGS)
|
|
||||||
+ AC_SUBST(NSS_LIBS)
|
|
||||||
+
|
|
||||||
+])
|
|
||||||
--- mozilla/configure.ccc 2006-08-31 17:37:23.000000000 +0200
|
|
||||||
+++ mozilla/configure 2007-02-22 14:42:15.000000000 +0100
|
|
||||||
@@ -44,6 +44,13 @@
|
|
||||||
--with-nspr-exec-prefix=PFX
|
|
||||||
Exec prefix where NSPR is installed"
|
|
||||||
ac_help="$ac_help
|
|
||||||
+ --with-system-nss Use system installed NSS"
|
|
||||||
+ac_help="$ac_help
|
|
||||||
+ --with-nss-prefix=PFX Prefix where NSS is installed"
|
|
||||||
+ac_help="$ac_help
|
|
||||||
+ --with-nss-exec-prefix=PFX
|
|
||||||
+ Exec prefix where NSS is installed"
|
|
||||||
+ac_help="$ac_help
|
|
||||||
--with-system-jpeg[=PFX]
|
|
||||||
Use system libjpeg [installed at prefix PFX]"
|
|
||||||
ac_help="$ac_help
|
|
||||||
@@ -1023,6 +1030,7 @@
|
|
||||||
MOZPNG=10207
|
|
||||||
MOZZLIB=1.2.3
|
|
||||||
NSPR_VERSION=4
|
|
||||||
+NSS_VERSION=3
|
|
||||||
|
|
||||||
GLIB_VERSION=1.2.0
|
|
||||||
GTK_VERSION=1.2.0
|
|
||||||
@@ -11399,6 +11407,123 @@
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
+
|
|
||||||
+# Check whether --with-system-nss or --without-system-nss was given.
|
|
||||||
+if test "${with_system_nss+set}" = set; then
|
|
||||||
+ withval="$with_system_nss"
|
|
||||||
+ if test "$withval" = "yes"; then
|
|
||||||
+ _USE_SYSTEM_NSS=1
|
|
||||||
+ elif test "$withval" = "no"; then
|
|
||||||
+ :
|
|
||||||
+ else
|
|
||||||
+ { echo "configure: error: Option, system-nss, does not take an argument ($withval)." 1>&2; exit 1; }
|
|
||||||
+ fi
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+if test -n "$_USE_SYSTEM_NSS"; then
|
|
||||||
+
|
|
||||||
+# Check whether --with-nss-prefix or --without-nss-prefix was given.
|
|
||||||
+if test "${with_nss_prefix+set}" = set; then
|
|
||||||
+ withval="$with_nss_prefix"
|
|
||||||
+ nss_config_prefix="$withval"
|
|
||||||
+else
|
|
||||||
+ nss_config_prefix=""
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+# Check whether --with-nss-exec-prefix or --without-nss-exec-prefix was given.
|
|
||||||
+if test "${with_nss_exec_prefix+set}" = set; then
|
|
||||||
+ withval="$with_nss_exec_prefix"
|
|
||||||
+ nss_config_exec_prefix="$withval"
|
|
||||||
+else
|
|
||||||
+ nss_config_exec_prefix=""
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+ if test -n "$nss_config_exec_prefix"; then
|
|
||||||
+ nss_config_args="$nss_config_args --exec-prefix=$nss_config_exec_prefix"
|
|
||||||
+ if test -z "$NSS_CONFIG"; then
|
|
||||||
+ NSS_CONFIG=$nss_config_exec_prefix/bin/nss-config
|
|
||||||
+ fi
|
|
||||||
+ fi
|
|
||||||
+ if test -n "$nss_config_prefix"; then
|
|
||||||
+ nss_config_args="$nss_config_args --prefix=$nss_config_prefix"
|
|
||||||
+ if test -z "$NSS_CONFIG"; then
|
|
||||||
+ NSS_CONFIG=$nss_config_prefix/bin/nss-config
|
|
||||||
+ fi
|
|
||||||
+ fi
|
|
||||||
+
|
|
||||||
+ unset ac_cv_path_NSS_CONFIG
|
|
||||||
+ # Extract the first word of "nss-config", so it can be a program name with args.
|
|
||||||
+set dummy nss-config; ac_word=$2
|
|
||||||
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
|
|
||||||
+echo "configure:11363: checking for $ac_word" >&5
|
|
||||||
+if eval "test \"`echo '$''{'ac_cv_path_NSS_CONFIG'+set}'`\" = set"; then
|
|
||||||
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
||||||
+else
|
|
||||||
+ case "$NSS_CONFIG" in
|
|
||||||
+ /*)
|
|
||||||
+ ac_cv_path_NSS_CONFIG="$NSS_CONFIG" # Let the user override the test with a path.
|
|
||||||
+ ;;
|
|
||||||
+ ?:/*)
|
|
||||||
+ ac_cv_path_NSS_CONFIG="$NSS_CONFIG" # Let the user override the test with a dos path.
|
|
||||||
+ ;;
|
|
||||||
+ *)
|
|
||||||
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
|
|
||||||
+ ac_dummy="$PATH"
|
|
||||||
+ for ac_dir in $ac_dummy; do
|
|
||||||
+ test -z "$ac_dir" && ac_dir=.
|
|
||||||
+ if test -f $ac_dir/$ac_word; then
|
|
||||||
+ ac_cv_path_NSS_CONFIG="$ac_dir/$ac_word"
|
|
||||||
+ break
|
|
||||||
+ fi
|
|
||||||
+ done
|
|
||||||
+ IFS="$ac_save_ifs"
|
|
||||||
+ test -z "$ac_cv_path_NSS_CONFIG" && ac_cv_path_NSS_CONFIG="no"
|
|
||||||
+ ;;
|
|
||||||
+esac
|
|
||||||
+fi
|
|
||||||
+NSS_CONFIG="$ac_cv_path_NSS_CONFIG"
|
|
||||||
+if test -n "$NSS_CONFIG"; then
|
|
||||||
+ echo "$ac_t""$NSS_CONFIG" 1>&6
|
|
||||||
+else
|
|
||||||
+ echo "$ac_t""no" 1>&6
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+ min_nss_version=3.0.0
|
|
||||||
+ echo $ac_n "checking for NSS - version >= $min_nss_version (skipping)""... $ac_c" 1>&6
|
|
||||||
+echo "configure:11398: checking for NSS - version >= $min_nss_version (skipping)" >&5
|
|
||||||
+
|
|
||||||
+ no_nss=""
|
|
||||||
+ if test "$NSS_CONFIG" = "no"; then
|
|
||||||
+ no_nss="yes"
|
|
||||||
+ else
|
|
||||||
+ NSS_CFLAGS=`$NSS_CONFIG $nss_config_args --cflags`
|
|
||||||
+ NSS_LIBS=`$NSS_CONFIG $nss_config_args --libs`
|
|
||||||
+
|
|
||||||
+ nss_config_major_version=`$NSS_CONFIG $nss_config_args --version | \
|
|
||||||
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
|
|
||||||
+ nss_config_minor_version=`$NSS_CONFIG $nss_config_args --version | \
|
|
||||||
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
|
|
||||||
+ nss_config_micro_version=`$NSS_CONFIG $nss_config_args --version | \
|
|
||||||
+ sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
|
|
||||||
+ fi
|
|
||||||
+
|
|
||||||
+ if test -z "$no_nss"; then
|
|
||||||
+ echo "$ac_t""yes" 1>&6
|
|
||||||
+ MOZ_NATIVE_NSS=1
|
|
||||||
+ else
|
|
||||||
+ echo "$ac_t""no" 1>&6
|
|
||||||
+ fi
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
if test -z "$SKIP_LIBRARY_CHECKS"; then
|
|
||||||
# Check whether --with-system-jpeg or --without-system-jpeg was given.
|
|
||||||
if test "${with_system_jpeg+set}" = set; then
|
|
||||||
@@ -19598,6 +19723,9 @@
|
|
||||||
s%@NSPR_CONFIG@%$NSPR_CONFIG%g
|
|
||||||
s%@NSPR_CFLAGS@%$NSPR_CFLAGS%g
|
|
||||||
s%@NSPR_LIBS@%$NSPR_LIBS%g
|
|
||||||
+s%@NSS_CONFIG@%$NSS_CONFIG%g
|
|
||||||
+s%@NSS_CFLAGS@%$NSS_CFLAGS%g
|
|
||||||
+s%@NSS_LIBS@%$NSS_LIBS%g
|
|
||||||
s%@GTK_CONFIG@%$GTK_CONFIG%g
|
|
||||||
s%@GTK_CFLAGS@%$GTK_CFLAGS%g
|
|
||||||
s%@GTK_LIBS@%$GTK_LIBS%g
|
|
||||||
@@ -19879,6 +20007,7 @@
|
|
||||||
s%@MOZ_PNG_CFLAGS@%$MOZ_PNG_CFLAGS%g
|
|
||||||
s%@MOZ_PNG_LIBS@%$MOZ_PNG_LIBS%g
|
|
||||||
s%@MOZ_NATIVE_NSPR@%$MOZ_NATIVE_NSPR%g
|
|
||||||
+s%@MOZ_NATIVE_NSS@%$MOZ_NATIVE_NSS%g
|
|
||||||
s%@COMPILE_CFLAGS@%$COMPILE_CFLAGS%g
|
|
||||||
s%@COMPILE_CXXFLAGS@%$COMPILE_CXXFLAGS%g
|
|
||||||
s%@CROSS_COMPILE@%$CROSS_COMPILE%g
|
|
||||||
--- mozilla/security/manager/ssl/src/nsNSSComponent.cpp.ccc 2005-08-26 08:41:50.000000000 +0200
|
|
||||||
+++ mozilla/security/manager/ssl/src/nsNSSComponent.cpp 2007-02-22 14:42:15.000000000 +0100
|
|
||||||
@@ -488,14 +488,6 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-#ifdef XP_MAC
|
|
||||||
-#ifdef DEBUG
|
|
||||||
-#define LOADABLE_CERTS_MODULE NS_LITERAL_CSTRING("NSSckbiDebug.shlb")
|
|
||||||
-#else
|
|
||||||
-#define LOADABLE_CERTS_MODULE NS_LITERAL_CSTRING("NSSckbi.shlb")
|
|
||||||
-#endif /*DEBUG*/
|
|
||||||
-#endif /*XP_MAC*/
|
|
||||||
-
|
|
||||||
static void setOCSPOptions(nsIPrefBranch * pref);
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
|
||||||
@@ -689,40 +681,40 @@
|
|
||||||
|
|
||||||
const char *possible_ckbi_locations[] = {
|
|
||||||
NS_GRE_DIR,
|
|
||||||
- NS_XPCOM_CURRENT_PROCESS_DIR
|
|
||||||
+ NS_XPCOM_CURRENT_PROCESS_DIR,
|
|
||||||
+ 0
|
|
||||||
};
|
|
||||||
-
|
|
||||||
+
|
|
||||||
for (size_t il = 0; il < sizeof(possible_ckbi_locations)/sizeof(const char*); ++il) {
|
|
||||||
nsCOMPtr<nsILocalFile> mozFile;
|
|
||||||
- directoryService->Get( possible_ckbi_locations[il],
|
|
||||||
- NS_GET_IID(nsILocalFile),
|
|
||||||
- getter_AddRefs(mozFile));
|
|
||||||
+ char *fullModuleName = nsnull;
|
|
||||||
+
|
|
||||||
+ if (!possible_ckbi_locations[il])
|
|
||||||
+ {
|
|
||||||
+ fullModuleName = PR_GetLibraryName(nsnull, "nssckbi");
|
|
||||||
+ }
|
|
||||||
+ else
|
|
||||||
+ {
|
|
||||||
+ directoryService->Get( possible_ckbi_locations[il],
|
|
||||||
+ NS_GET_IID(nsILocalFile),
|
|
||||||
+ getter_AddRefs(mozFile));
|
|
||||||
|
|
||||||
- if (!mozFile) {
|
|
||||||
- continue;
|
|
||||||
+ if (!mozFile) {
|
|
||||||
+ continue;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ nsCAutoString processDir;
|
|
||||||
+ mozFile->GetNativePath(processDir);
|
|
||||||
+ fullModuleName = PR_GetLibraryName(processDir.get(), "nssckbi");
|
|
||||||
}
|
|
||||||
|
|
||||||
- char *fullModuleName = nsnull;
|
|
||||||
-#ifdef XP_MAC
|
|
||||||
- nsCAutoString nativePath;
|
|
||||||
- mozFile->AppendNative(NS_LITERAL_CSTRING("Essential Files"));
|
|
||||||
- mozFile->AppendNative(LOADABLE_CERTS_MODULE);
|
|
||||||
- mozFile->GetNativePath(nativePath);
|
|
||||||
- fullModuleName = (char *) nativePath.get();
|
|
||||||
-#else
|
|
||||||
- nsCAutoString processDir;
|
|
||||||
- mozFile->GetNativePath(processDir);
|
|
||||||
- fullModuleName = PR_GetLibraryName(processDir.get(), "nssckbi");
|
|
||||||
-#endif
|
|
||||||
/* If a module exists with the same name, delete it. */
|
|
||||||
NS_ConvertUCS2toUTF8 modNameUTF8(modName);
|
|
||||||
int modType;
|
|
||||||
SECMOD_DeleteModule(NS_CONST_CAST(char*, modNameUTF8.get()), &modType);
|
|
||||||
SECStatus rv_add =
|
|
||||||
SECMOD_AddNewModule(NS_CONST_CAST(char*, modNameUTF8.get()), fullModuleName, 0, 0);
|
|
||||||
-#ifndef XP_MAC
|
|
||||||
- PR_Free(fullModuleName); // allocated by NSPR
|
|
||||||
-#endif
|
|
||||||
+ PR_FreeLibraryName(fullModuleName); // allocated by NSPR
|
|
||||||
if (SECSuccess == rv_add) {
|
|
||||||
// found a module, no need to try other directories
|
|
||||||
break;
|
|
||||||
--- mozilla/security/manager/ssl/src/Makefile.in.ccc 2005-08-03 07:24:18.000000000 +0200
|
|
||||||
+++ mozilla/security/manager/ssl/src/Makefile.in 2007-02-22 14:42:15.000000000 +0100
|
|
||||||
@@ -123,8 +123,13 @@
|
|
||||||
|
|
||||||
# Use local includes because they are inserted before INCLUDES
|
|
||||||
# so that Mozilla's nss.h is used, not glibc's
|
|
||||||
+ifdef MOZ_NATIVE_NSS
|
|
||||||
+LOCAL_INCLUDES += $(NSS_CFLAGS) \
|
|
||||||
+ $(NULL)
|
|
||||||
+else
|
|
||||||
LOCAL_INCLUDES += -I$(DIST)/public/nss \
|
|
||||||
$(NULL)
|
|
||||||
+endif
|
|
||||||
|
|
||||||
EXTRA_DSO_LDOPTS += \
|
|
||||||
$(MOZ_UNICHARUTIL_LIBS) \
|
|
||||||
--- mozilla/security/manager/Makefile.in.ccc 2007-02-22 14:42:14.000000000 +0100
|
|
||||||
+++ mozilla/security/manager/Makefile.in 2007-02-22 14:45:44.000000000 +0100
|
|
||||||
@@ -46,6 +46,8 @@
|
|
||||||
MODULE = psm
|
|
||||||
|
|
||||||
PACKAGE_FILE = psm.pkg
|
|
||||||
+
|
|
||||||
+ifndef MOZ_NATIVE_NSS
|
|
||||||
PACKAGE_VARS += \
|
|
||||||
NSS3_LIB \
|
|
||||||
SMIME3_LIB \
|
|
||||||
@@ -60,6 +62,7 @@
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
LOADABLE_ROOT_MODULE = $(DLL_PREFIX)nssckbi$(DLL_SUFFIX)
|
|
||||||
+endif
|
|
||||||
|
|
||||||
NSS3_LIB = $(DLL_PREFIX)nss3$(DLL_SUFFIX)
|
|
||||||
SMIME3_LIB = $(DLL_PREFIX)smime3$(DLL_SUFFIX)
|
|
||||||
@@ -200,6 +203,7 @@
|
|
||||||
export:: .nss.cleaned
|
|
||||||
|
|
||||||
.nss.cleaned: .nss.checkout
|
|
||||||
+ifndef MOZ_NATIVE_NSS
|
|
||||||
$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS) clean
|
|
||||||
$(MAKE) -C $(topsrcdir)/security/nss/lib $(DEFAULT_GMAKE_FLAGS) clean
|
|
||||||
ifndef SKIP_CHK
|
|
||||||
@@ -207,9 +211,12 @@
|
|
||||||
$(MAKE) -C $(topsrcdir)/security/nss/cmd/shlibsign $(DEFAULT_GMAKE_FLAGS) clean
|
|
||||||
endif
|
|
||||||
touch $@
|
|
||||||
+endif
|
|
||||||
|
|
||||||
.nss.checkout:
|
|
||||||
+ifndef MOZ_NATIVE_NSS
|
|
||||||
touch $(srcdir)/$@
|
|
||||||
+endif
|
|
||||||
|
|
||||||
dependclean export packages chrome::
|
|
||||||
$(MAKE) -C boot $@
|
|
||||||
@@ -220,12 +227,15 @@
|
|
||||||
endif
|
|
||||||
|
|
||||||
libs::
|
|
||||||
+ifndef MOZ_NATIVE_NSS
|
|
||||||
$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS)
|
|
||||||
+endif
|
|
||||||
ifeq ($(OS_ARCH),WINNT)
|
|
||||||
cd $(DIST)/lib; cp -f $(LIB_PREFIX)dbm$(MOZ_BITS).$(LIB_SUFFIX) $(LIB_PREFIX)dbm.$(LIB_SUFFIX)
|
|
||||||
else
|
|
||||||
cd $(DIST)/lib; cp -f $(LIB_PREFIX)mozdbm_s.$(LIB_SUFFIX) $(LIB_PREFIX)dbm.$(LIB_SUFFIX); $(RANLIB) $(LIB_PREFIX)dbm.$(LIB_SUFFIX)
|
|
||||||
endif
|
|
||||||
+ifndef MOZ_NATIVE_NSS
|
|
||||||
$(MAKE) -C $(topsrcdir)/security/nss/lib $(DEFAULT_GMAKE_FLAGS)
|
|
||||||
ifndef SKIP_CHK
|
|
||||||
$(MAKE) -C $(topsrcdir)/security/nss/cmd/lib $(DEFAULT_GMAKE_FLAGS)
|
|
||||||
@@ -307,6 +317,7 @@
|
|
||||||
$(INSTALL) -m 755 $(DIST)/lib/$(FREEBL_64FPU_LIB) $(DIST)/bin
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
+endif
|
|
||||||
$(MAKE) -C boot $@
|
|
||||||
$(MAKE) -C ssl $@
|
|
||||||
$(MAKE) -C locales $@
|
|
||||||
@@ -315,6 +326,7 @@
|
|
||||||
endif
|
|
||||||
|
|
||||||
install::
|
|
||||||
+ifndef MOZ_NATIVE_NSS
|
|
||||||
$(SYSINSTALL) -m 755 $(DIST)/lib/$(LOADABLE_ROOT_MODULE) $(DESTDIR)$(mozappdir)
|
|
||||||
ifndef SKIP_CHK
|
|
||||||
$(SYSINSTALL) -m 644 $(DIST)/lib/$(SOFTOKEN3_CHK) $(DESTDIR)$(mozappdir)
|
|
||||||
@@ -351,6 +363,7 @@
|
|
||||||
$(SYSINSTALL) -m 755 $(DIST)/lib/$(FREEBL_64INT_LIB) $(DESTDIR)$(mozappdir)
|
|
||||||
$(SYSINSTALL) -m 755 $(DIST)/lib/$(FREEBL_64FPU_LIB) $(DESTDIR)$(mozappdir)
|
|
||||||
endif
|
|
||||||
+endif
|
|
||||||
$(MAKE) -C boot $@
|
|
||||||
$(MAKE) -C ssl $@
|
|
||||||
$(MAKE) -C locales $@
|
|
||||||
@@ -365,15 +378,18 @@
|
|
||||||
ifdef MOZ_XUL
|
|
||||||
$(MAKE) -C pki $@
|
|
||||||
endif
|
|
||||||
+ifndef MOZ_NATIVE_NSS
|
|
||||||
$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS) clean
|
|
||||||
$(MAKE) -C $(topsrcdir)/security/nss/lib $(DEFAULT_GMAKE_FLAGS) clean
|
|
||||||
ifndef SKIP_CHK
|
|
||||||
$(MAKE) -C $(topsrcdir)/security/nss/cmd/lib $(DEFAULT_GMAKE_FLAGS) clean
|
|
||||||
$(MAKE) -C $(topsrcdir)/security/nss/cmd/shlibsign $(DEFAULT_GMAKE_FLAGS) clean
|
|
||||||
endif
|
|
||||||
+endif
|
|
||||||
|
|
||||||
echo-requires-recursive::
|
|
||||||
$(MAKE) -C boot $@
|
|
||||||
$(MAKE) -C ssl $@
|
|
||||||
$(MAKE) -C pki $@
|
|
||||||
$(MAKE) -C locales $@
|
|
||||||
+
|
|
@ -1,14 +0,0 @@
|
|||||||
--- mozilla/uriloader/exthandler/unix/nsGNOMERegistry.cpp.foo 2004-03-06 09:41:00.000000000 -0500
|
|
||||||
+++ mozilla/uriloader/exthandler/unix/nsGNOMERegistry.cpp 2004-10-18 18:55:55.000000000 -0400
|
|
||||||
@@ -283,6 +283,11 @@
|
|
||||||
|
|
||||||
gchar *nativeCommand = g_filename_from_utf8(handlerApp->command,
|
|
||||||
-1, NULL, NULL, NULL);
|
|
||||||
+
|
|
||||||
+ // Some versions of the mime stuff will add whitespace to the end or
|
|
||||||
+ // beginning of the command
|
|
||||||
+ nativeCommand = g_strstrip(nativeCommand);
|
|
||||||
+
|
|
||||||
if (!nativeCommand) {
|
|
||||||
NS_ERROR("Could not convert helper app command to filesystem encoding");
|
|
||||||
_gnome_vfs_mime_application_free(handlerApp);
|
|
File diff suppressed because it is too large
Load Diff
@ -1,591 +0,0 @@
|
|||||||
Mostly the same as firefox-1.5-visibility.patch with the addition of lber.h
|
|
||||||
|
|
||||||
--- mozilla/config/system-headers.visibility 2005-06-17 17:03:42.000000000 -0400
|
|
||||||
+++ mozilla/config/system-headers 2006-09-05 00:03:12.000000000 -0400
|
|
||||||
@@ -66,6 +66,7 @@
|
|
||||||
Button.h
|
|
||||||
byteswap.h
|
|
||||||
cairo.h
|
|
||||||
+cairo-xlib.h
|
|
||||||
callconv.h
|
|
||||||
Carbon/Carbon.h
|
|
||||||
CarbonEvents.h
|
|
||||||
@@ -176,7 +177,7 @@
|
|
||||||
freetype/freetype.h
|
|
||||||
freetype/ftcache.h
|
|
||||||
freetype/ftglyph.h
|
|
||||||
-freetype/ftoutlin.h
|
|
||||||
+freetype/ftoutln.h
|
|
||||||
freetype/ttnameid.h
|
|
||||||
freetype/tttables.h
|
|
||||||
fribidi/fribidi.h
|
|
||||||
@@ -192,6 +193,8 @@
|
|
||||||
gdk/gdkregion.h
|
|
||||||
gdk/gdkwindow.h
|
|
||||||
gdk/gdkx.h
|
|
||||||
+gdk/gdkpango.h
|
|
||||||
+gdk/gdkalias.h
|
|
||||||
gdk-pixbuf/gdk-pixbuf.h
|
|
||||||
Gestalt.h
|
|
||||||
getopt.h
|
|
||||||
@@ -212,7 +215,11 @@
|
|
||||||
gtk/gtkcontainer.h
|
|
||||||
gtk/gtkdialog.h
|
|
||||||
gtk/gtkentry.h
|
|
||||||
+gtk/gtkfilechooser.h
|
|
||||||
+gtk/gtkfixed.h
|
|
||||||
gtk/gtk.h
|
|
||||||
+gtk/gtkiconfactory.h
|
|
||||||
+gtk/gtkimage.h
|
|
||||||
gtk/gtkimmulticontext.h
|
|
||||||
gtk/gtkinvisible.h
|
|
||||||
gtk/gtkmain.h
|
|
||||||
@@ -279,6 +286,7 @@
|
|
||||||
LaunchServices.h
|
|
||||||
LBroadcaster.h
|
|
||||||
LButton.h
|
|
||||||
+lber.h
|
|
||||||
lcache.h
|
|
||||||
LCaption.h
|
|
||||||
LCheckBox.h
|
|
||||||
@@ -500,6 +508,7 @@
|
|
||||||
PLStringFuncs.h
|
|
||||||
PMApplication.h
|
|
||||||
pmddim.h
|
|
||||||
+png.h
|
|
||||||
poll.h
|
|
||||||
Polygon.h
|
|
||||||
portable.h
|
|
||||||
@@ -874,6 +883,7 @@
|
|
||||||
X11/Xutil.h
|
|
||||||
xpt_struct.h
|
|
||||||
xpt_xdr.h
|
|
||||||
+zlib.h
|
|
||||||
zmouse.h
|
|
||||||
sslt.h
|
|
||||||
smime.h
|
|
||||||
--- mozilla/xpcom/base/nscore.h.visibility 2006-02-21 22:19:38.000000000 -0500
|
|
||||||
+++ mozilla/xpcom/base/nscore.h 2006-09-04 23:26:15.000000000 -0400
|
|
||||||
@@ -105,7 +105,7 @@
|
|
||||||
#define NS_VISIBILITY_HIDDEN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#if defined(HAVE_VISIBILITY_HIDDEN_ATTRIBUTE) && defined(HAVE_VISIBILITY_PRAGMA)
|
|
||||||
+#if defined(HAVE_VISIBILITY_ATTRIBUTE)
|
|
||||||
#define NS_VISIBILITY_DEFAULT __attribute__ ((visibility ("default")))
|
|
||||||
#else
|
|
||||||
#define NS_VISIBILITY_DEFAULT
|
|
||||||
--- mozilla/configure.visibility 2006-09-04 23:26:15.000000000 -0400
|
|
||||||
+++ mozilla/configure 2006-09-04 23:26:15.000000000 -0400
|
|
||||||
@@ -5331,9 +5331,9 @@
|
|
||||||
OS_CONFIG="${OS_TARGET}${OS_RELEASE}"
|
|
||||||
|
|
||||||
if test "$GNU_CC"; then
|
|
||||||
- MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
- MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
- DSO_LDOPTS='-shared -Wl,-h -Wl,$@'
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-h,$@ -o $@'
|
|
||||||
+ MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-h,$@ -o $@'
|
|
||||||
+ DSO_LDOPTS='-shared'
|
|
||||||
DSO_CFLAGS=''
|
|
||||||
DSO_PIC_CFLAGS='-fPIC'
|
|
||||||
_MOZ_RTTI_FLAGS_ON=${_COMPILER_PREFIX}-frtti
|
|
||||||
@@ -5357,9 +5357,9 @@
|
|
||||||
_DEFINES_CFLAGS='-include $(DEPTH)/mozilla-config.h -DMOZILLA_CLIENT'
|
|
||||||
_USE_CPP_INCLUDE_FLAG=1
|
|
||||||
else
|
|
||||||
- MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
|
|
||||||
- MKCSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
|
|
||||||
- DSO_LDOPTS='-shared -h $@'
|
|
||||||
+ MKSHLIB='$(LD) $(DSO_LDOPTS) -h $@ -o $@'
|
|
||||||
+ MKCSHLIB='$(LD) $(DSO_LDOPTS) -h $@ -o $@'
|
|
||||||
+ DSO_LDOPTS='-shared'
|
|
||||||
DSO_CFLAGS=''
|
|
||||||
DSO_PIC_CFLAGS='-KPIC'
|
|
||||||
_DEFINES_CFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'
|
|
||||||
@@ -5703,9 +5703,9 @@
|
|
||||||
|
|
||||||
*-beos*)
|
|
||||||
no_x=yes
|
|
||||||
- MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -Wl,-h,$@ -o $@'
|
|
||||||
_PLATFORM_DEFAULT_TOOLKIT="beos"
|
|
||||||
- DSO_LDOPTS='-nostart -Wl,-h -Wl,$@'
|
|
||||||
+ DSO_LDOPTS='-nostart'
|
|
||||||
TK_LIBS='-lbe -lroot'
|
|
||||||
LIBS="$LIBS -lbe"
|
|
||||||
if test "$COMPILE_ENVIRONMENT"; then
|
|
||||||
@@ -5871,16 +5871,16 @@
|
|
||||||
*-hpux*)
|
|
||||||
DLL_SUFFIX=".sl"
|
|
||||||
if test ! "$GNU_CC"; then
|
|
||||||
- DSO_LDOPTS='-b -Wl,+s -L$(DIST)/bin'
|
|
||||||
+ DSO_LDOPTS='-b -Wl,+s'
|
|
||||||
DSO_CFLAGS=""
|
|
||||||
DSO_PIC_CFLAGS="+Z"
|
|
||||||
- MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -L$(DIST)/bin -o $@'
|
|
||||||
MKCSHLIB='$(LD) -b +s -L$(DIST)/bin -o $@'
|
|
||||||
CXXFLAGS="$CXXFLAGS -Wc,-ansi_for_scope,on"
|
|
||||||
else
|
|
||||||
- DSO_LDOPTS='-b -E +s -L$(DIST)/bin -L$(DIST)/lib'
|
|
||||||
- MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
|
|
||||||
- MKCSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
|
|
||||||
+ DSO_LDOPTS='-b -E +s'
|
|
||||||
+ MKSHLIB='$(LD) $(DSO_LDOPTS) -L$(DIST)/bin -L$(DIST)/lib -o $@'
|
|
||||||
+ MKCSHLIB='$(LD) $(DSO_LDOPTS) -L$(DIST)/bin -L$(DIST)/lib -o $@'
|
|
||||||
fi
|
|
||||||
MOZ_POST_PROGRAM_COMMAND='chatr +s enable'
|
|
||||||
cat >> confdefs.h <<\EOF
|
|
||||||
@@ -5895,11 +5895,16 @@
|
|
||||||
EOF
|
|
||||||
|
|
||||||
DSO_LDOPTS='-elf -shared'
|
|
||||||
+
|
|
||||||
if test "$GNU_CC"; then
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
+ MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
MKSHLIB_FORCE_ALL='-Wl,-all'
|
|
||||||
MKSHLIB_UNFORCE_ALL='-Wl,-none'
|
|
||||||
CXXFLAGS="$CXXFLAGS -D_LANGUAGE_C_PLUS_PLUS"
|
|
||||||
else
|
|
||||||
+ MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
|
|
||||||
+ MKCSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
|
|
||||||
MKSHLIB_FORCE_ALL='-all'
|
|
||||||
MKSHLIB_UNFORCE_ALL='-none'
|
|
||||||
fi
|
|
||||||
@@ -6338,7 +6343,7 @@
|
|
||||||
if $CC -E - -dM </dev/null | grep __ELF__ >/dev/null; then
|
|
||||||
DLL_SUFFIX=".so"
|
|
||||||
DSO_PIC_CFLAGS='-fPIC -DPIC'
|
|
||||||
- DSO_LDOPTS='-shared -Wl,-soname,lib$(LIBRARY_NAME)$(DLL_SUFFIX)'
|
|
||||||
+ DSO_LDOPTS='-shared'
|
|
||||||
BIN_FLAGS='-Wl,--export-dynamic'
|
|
||||||
else
|
|
||||||
DSO_PIC_CFLAGS='-fPIC -DPIC'
|
|
||||||
@@ -6351,6 +6356,8 @@
|
|
||||||
if test "$LIBRUNPATH"; then
|
|
||||||
DSO_LDOPTS="-Wl,-R$LIBRUNPATH $DSO_LDOPTS"
|
|
||||||
fi
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-soname,lib$(LIBRARY_NAME)$(DLL_SUFFIX) -o $@'
|
|
||||||
+ MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-soname,lib$(LIBRARY_NAME)$(DLL_SUFFIX) -o $@'
|
|
||||||
;;
|
|
||||||
|
|
||||||
*-nto*)
|
|
||||||
@@ -6571,17 +6578,19 @@
|
|
||||||
|
|
||||||
alpha*-*-osf*)
|
|
||||||
if test "$GNU_CC"; then
|
|
||||||
- DSO_LDOPTS='-shared -Wl,-soname -Wl,$@'
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-soname,$@ -o $@'
|
|
||||||
+ MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-soname,$@ -o $@'
|
|
||||||
+
|
|
||||||
else
|
|
||||||
MOZ_DEBUG_FLAGS='-g'
|
|
||||||
ASFLAGS='-I$(topsrcdir)/xpcom/reflect/xptcall/public -g'
|
|
||||||
CFLAGS="$CFLAGS -ieee"
|
|
||||||
CXXFLAGS="$CXXFLAGS "'-noexceptions -ieee -ptr $(DIST)/cxx_repository'
|
|
||||||
- DSO_LDOPTS='-shared -msym -expect_unresolved \* -soname $@ -update_registry $(DIST)/so_locations'
|
|
||||||
+ DSO_LDOPTS='-shared -msym -expect_unresolved \* -update_registry $(DIST)/so_locations'
|
|
||||||
DSO_CFLAGS=
|
|
||||||
DSO_PIC_CFLAGS=
|
|
||||||
- MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
- MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
+ MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -soname $@ -o $@'
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -soname $@ -o $@'
|
|
||||||
MKSHLIB_FORCE_ALL='-all'
|
|
||||||
MKSHLIB_UNFORCE_ALL='-none'
|
|
||||||
cat >> confdefs.h <<\EOF
|
|
||||||
@@ -6634,7 +6643,7 @@
|
|
||||||
|
|
||||||
CXXFLAGS="$CXXFLAGS -I/usr/include/CC"
|
|
||||||
if test ! "$GNU_CC"; then
|
|
||||||
- DSO_LDOPTS='-G -h $@'
|
|
||||||
+ DSO_LDOPTS='-G'
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
@@ -6655,11 +6664,11 @@
|
|
||||||
CXXFLAGS="$CXXFLAGS -xbuiltin=%all -features=tmplife"
|
|
||||||
LDFLAGS="-xildoff -zlazyload -zcombreloc $LDFLAGS"
|
|
||||||
MOZ_OPTIMIZE_FLAGS="-xO4"
|
|
||||||
- MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_FLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
- MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_FLAGS) -G -Wl,-z -Wl,muldefs -o $@'
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_FLAGS) $(DSO_LDOPTS) -h $@ -o $@'
|
|
||||||
+ KCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_FLAGS) -G -Wl,-z -Wl,muldefs -h $@ -o $@'
|
|
||||||
MKSHLIB_FORCE_ALL='-Qoption ld -z,allextract'
|
|
||||||
MKSHLIB_UNFORCE_ALL=''
|
|
||||||
- DSO_LDOPTS='-G -Qoption ld -z,muldefs -h $@'
|
|
||||||
+ DSO_LDOPTS='-G -Qoption ld -z,muldefs'
|
|
||||||
AR_LIST="$AR t"
|
|
||||||
AR_EXTRACT="$AR x"
|
|
||||||
AR_DELETE="$AR d"
|
|
||||||
@@ -6717,7 +6726,7 @@
|
|
||||||
|
|
||||||
else
|
|
||||||
ASFLAGS="$ASFLAGS -fPIC"
|
|
||||||
- DSO_LDOPTS='-G -h $@'
|
|
||||||
+ DSO_LDOPTS='-G'
|
|
||||||
_WARNINGS_CFLAGS=''
|
|
||||||
_WARNINGS_CXXFLAGS=''
|
|
||||||
if test "$OS_RELEASE" = "5.3"; then
|
|
||||||
@@ -7708,13 +7717,39 @@
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "$ac_t""$ac_cv_visibility_hidden" 1>&6
|
|
||||||
- if test "$ac_cv_visibility_hidden" = "yes"; then
|
|
||||||
- cat >> confdefs.h <<\EOF
|
|
||||||
+ if test "$ac_cv_visibility_hidden" = "yes"; then
|
|
||||||
+ cat >> confdefs.h <<\EOF
|
|
||||||
#define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1
|
|
||||||
EOF
|
|
||||||
|
|
||||||
+
|
|
||||||
+ echo $ac_n "checking for visibility(default) attribute""... $ac_c" 1>&6
|
|
||||||
+echo "configure:7728: checking for visibility(default) attribute" >&5
|
|
||||||
+if eval "test \"`echo '$''{'ac_cv_visibility_default'+set}'`\" = set"; then
|
|
||||||
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
||||||
+else
|
|
||||||
+ cat > conftest.c <<EOF
|
|
||||||
+ int foo __attribute__ ((visibility ("default"))) = 1;
|
|
||||||
+EOF
|
|
||||||
+ ac_cv_visibility_default=no
|
|
||||||
+ if ${CC-cc} -fvisibility=hidden -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
|
|
||||||
+ if ! grep '\.hidden.*foo' conftest.s >/dev/null; then
|
|
||||||
+ ac_cv_visibility_default=yes
|
|
||||||
+ fi
|
|
||||||
+ fi
|
|
||||||
+ rm -f conftest.cs
|
|
||||||
+
|
|
||||||
+fi
|
|
||||||
+
|
|
||||||
+echo "$ac_t""$ac_cv_visibility_default" 1>&6
|
|
||||||
+ if test "$ac_cv_visibility_default" = "yes"; then
|
|
||||||
+ cat >> confdefs.h <<\EOF
|
|
||||||
+#define HAVE_VISIBILITY_ATTRIBUTE 1
|
|
||||||
+EOF
|
|
||||||
+
|
|
||||||
+
|
|
||||||
echo $ac_n "checking for visibility pragma support""... $ac_c" 1>&6
|
|
||||||
-echo "configure:7710: checking for visibility pragma support" >&5
|
|
||||||
+echo "configure:7753: checking for visibility pragma support" >&5
|
|
||||||
if eval "test \"`echo '$''{'ac_cv_visibility_pragma'+set}'`\" = set"; then
|
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
|
||||||
else
|
|
||||||
@@ -7738,15 +7773,41 @@
|
|
||||||
|
|
||||||
echo "$ac_t""$ac_cv_visibility_pragma" 1>&6
|
|
||||||
if test "$ac_cv_visibility_pragma" = "yes"; then
|
|
||||||
- cat >> confdefs.h <<\EOF
|
|
||||||
-#define HAVE_VISIBILITY_PRAGMA 1
|
|
||||||
+ echo $ac_n "checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)""... $ac_c" 1>&6
|
|
||||||
+echo "configure:7778: checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)" >&5
|
|
||||||
+if eval "test \"`echo '$''{'ac_cv_have_visibility_builtin_bug'+set}'`\" = set"; then
|
|
||||||
+ echo $ac_n "(cached) $ac_c" 1>&6
|
|
||||||
+else
|
|
||||||
+ cat > conftest.c <<EOF
|
|
||||||
+#pragma GCC visibility push(hidden)
|
|
||||||
+#pragma GCC visibility push(default)
|
|
||||||
+#include <string.h>
|
|
||||||
+#pragma GCC visibility pop
|
|
||||||
+
|
|
||||||
+__attribute__ ((visibility ("default"))) void Func() {
|
|
||||||
+ char c[100];
|
|
||||||
+ memset(c, 0, sizeof(c));
|
|
||||||
+}
|
|
||||||
EOF
|
|
||||||
+ ac_cv_have_visibility_builtin_bug=no
|
|
||||||
+ if ! ${CC-cc} ${DSO_PIC_CFLAGS} ${DSO_LDOPTS} -O2 -o conftest.so conftest.c >/dev/null 2>&1; then
|
|
||||||
+ ac_cv_have_visibility_builtin_bug=yes
|
|
||||||
+ fi
|
|
||||||
+ rm -f conftest.{c,so}
|
|
||||||
+
|
|
||||||
+fi
|
|
||||||
|
|
||||||
- VISIBILITY_FLAGS='-I$(DIST)/include/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
|
|
||||||
- WRAP_SYSTEM_INCLUDES=1
|
|
||||||
- fi
|
|
||||||
- fi
|
|
||||||
-fi # GNU_CC
|
|
||||||
+echo "$ac_t""$ac_cv_have_visibility_builtin_bug" 1>&6
|
|
||||||
+ if test "$ac_cv_have_visibility_builtin_bug" = "no"; then
|
|
||||||
+ VISIBILITY_FLAGS='-I$(DIST)/include/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
|
|
||||||
+ WRAP_SYSTEM_INCLUDES=1
|
|
||||||
+ else
|
|
||||||
+ VISIBILITY_FLAGS='-fvisibility=hidden'
|
|
||||||
+ fi # have visibility pragma bug
|
|
||||||
+ fi # have visibility pragma
|
|
||||||
+ fi # have visibility(default) attribute
|
|
||||||
+ fi # have visibility(hidden) attribute
|
|
||||||
+fi # GNU_CC
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--- mozilla/configure.in.visibility 2006-09-04 23:26:15.000000000 -0400
|
|
||||||
+++ mozilla/configure.in 2006-09-04 23:26:15.000000000 -0400
|
|
||||||
@@ -1103,9 +1103,9 @@
|
|
||||||
dnl GNU specific defaults
|
|
||||||
dnl ========================================================
|
|
||||||
if test "$GNU_CC"; then
|
|
||||||
- MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
- MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
- DSO_LDOPTS='-shared -Wl,-h -Wl,$@'
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-h,$@ -o $@'
|
|
||||||
+ MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-h,$@ -o $@'
|
|
||||||
+ DSO_LDOPTS='-shared'
|
|
||||||
DSO_CFLAGS=''
|
|
||||||
DSO_PIC_CFLAGS='-fPIC'
|
|
||||||
_MOZ_RTTI_FLAGS_ON=${_COMPILER_PREFIX}-frtti
|
|
||||||
@@ -1130,9 +1130,9 @@
|
|
||||||
_DEFINES_CFLAGS='-include $(DEPTH)/mozilla-config.h -DMOZILLA_CLIENT'
|
|
||||||
_USE_CPP_INCLUDE_FLAG=1
|
|
||||||
else
|
|
||||||
- MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
|
|
||||||
- MKCSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
|
|
||||||
- DSO_LDOPTS='-shared -h $@'
|
|
||||||
+ MKSHLIB='$(LD) $(DSO_LDOPTS) -h $@ -o $@'
|
|
||||||
+ MKCSHLIB='$(LD) $(DSO_LDOPTS) -h $@ -o $@'
|
|
||||||
+ DSO_LDOPTS='-shared'
|
|
||||||
DSO_CFLAGS=''
|
|
||||||
DSO_PIC_CFLAGS='-KPIC'
|
|
||||||
_DEFINES_CFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'
|
|
||||||
@@ -1360,9 +1360,9 @@
|
|
||||||
|
|
||||||
*-beos*)
|
|
||||||
no_x=yes
|
|
||||||
- MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -Wl,-h,$@ -o $@'
|
|
||||||
_PLATFORM_DEFAULT_TOOLKIT="beos"
|
|
||||||
- DSO_LDOPTS='-nostart -Wl,-h -Wl,$@'
|
|
||||||
+ DSO_LDOPTS='-nostart'
|
|
||||||
TK_LIBS='-lbe -lroot'
|
|
||||||
LIBS="$LIBS -lbe"
|
|
||||||
if test "$COMPILE_ENVIRONMENT"; then
|
|
||||||
@@ -1442,16 +1442,16 @@
|
|
||||||
*-hpux*)
|
|
||||||
DLL_SUFFIX=".sl"
|
|
||||||
if test ! "$GNU_CC"; then
|
|
||||||
- DSO_LDOPTS='-b -Wl,+s -L$(DIST)/bin'
|
|
||||||
+ DSO_LDOPTS='-b -Wl,+s'
|
|
||||||
DSO_CFLAGS=""
|
|
||||||
DSO_PIC_CFLAGS="+Z"
|
|
||||||
- MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -L$(DIST)/bin -o $@'
|
|
||||||
MKCSHLIB='$(LD) -b +s -L$(DIST)/bin -o $@'
|
|
||||||
CXXFLAGS="$CXXFLAGS -Wc,-ansi_for_scope,on"
|
|
||||||
else
|
|
||||||
- DSO_LDOPTS='-b -E +s -L$(DIST)/bin -L$(DIST)/lib'
|
|
||||||
- MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
|
|
||||||
- MKCSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
|
|
||||||
+ DSO_LDOPTS='-b -E +s'
|
|
||||||
+ MKSHLIB='$(LD) $(DSO_LDOPTS) -L$(DIST)/bin -L$(DIST)/lib -o $@'
|
|
||||||
+ MKCSHLIB='$(LD) $(DSO_LDOPTS) -L$(DIST)/bin -L$(DIST)/lib -o $@'
|
|
||||||
fi
|
|
||||||
MOZ_POST_PROGRAM_COMMAND='chatr +s enable'
|
|
||||||
AC_DEFINE(NSCAP_DISABLE_DEBUG_PTR_TYPES)
|
|
||||||
@@ -1460,11 +1460,16 @@
|
|
||||||
*-irix5*)
|
|
||||||
AC_DEFINE(IRIX)
|
|
||||||
DSO_LDOPTS='-elf -shared'
|
|
||||||
+
|
|
||||||
if test "$GNU_CC"; then
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
+ MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
MKSHLIB_FORCE_ALL='-Wl,-all'
|
|
||||||
MKSHLIB_UNFORCE_ALL='-Wl,-none'
|
|
||||||
CXXFLAGS="$CXXFLAGS -D_LANGUAGE_C_PLUS_PLUS"
|
|
||||||
else
|
|
||||||
+ MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
|
|
||||||
+ MKCSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
|
|
||||||
MKSHLIB_FORCE_ALL='-all'
|
|
||||||
MKSHLIB_UNFORCE_ALL='-none'
|
|
||||||
fi
|
|
||||||
@@ -1818,7 +1823,7 @@
|
|
||||||
if $CC -E - -dM </dev/null | grep __ELF__ >/dev/null; then
|
|
||||||
DLL_SUFFIX=".so"
|
|
||||||
DSO_PIC_CFLAGS='-fPIC -DPIC'
|
|
||||||
- DSO_LDOPTS='-shared -Wl,-soname,lib$(LIBRARY_NAME)$(DLL_SUFFIX)'
|
|
||||||
+ DSO_LDOPTS='-shared'
|
|
||||||
BIN_FLAGS='-Wl,--export-dynamic'
|
|
||||||
else
|
|
||||||
DSO_PIC_CFLAGS='-fPIC -DPIC'
|
|
||||||
@@ -1831,6 +1836,8 @@
|
|
||||||
if test "$LIBRUNPATH"; then
|
|
||||||
DSO_LDOPTS="-Wl,-R$LIBRUNPATH $DSO_LDOPTS"
|
|
||||||
fi
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-soname,lib$(LIBRARY_NAME)$(DLL_SUFFIX) -o $@'
|
|
||||||
+ MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-soname,lib$(LIBRARY_NAME)$(DLL_SUFFIX) -o $@'
|
|
||||||
;;
|
|
||||||
|
|
||||||
*-nto*)
|
|
||||||
@@ -1994,17 +2001,19 @@
|
|
||||||
|
|
||||||
alpha*-*-osf*)
|
|
||||||
if test "$GNU_CC"; then
|
|
||||||
- DSO_LDOPTS='-shared -Wl,-soname -Wl,$@'
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-soname,$@ -o $@'
|
|
||||||
+ MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-soname,$@ -o $@'
|
|
||||||
+
|
|
||||||
else
|
|
||||||
MOZ_DEBUG_FLAGS='-g'
|
|
||||||
ASFLAGS='-I$(topsrcdir)/xpcom/reflect/xptcall/public -g'
|
|
||||||
CFLAGS="$CFLAGS -ieee"
|
|
||||||
CXXFLAGS="$CXXFLAGS "'-noexceptions -ieee -ptr $(DIST)/cxx_repository'
|
|
||||||
- DSO_LDOPTS='-shared -msym -expect_unresolved \* -soname $@ -update_registry $(DIST)/so_locations'
|
|
||||||
+ DSO_LDOPTS='-shared -msym -expect_unresolved \* -update_registry $(DIST)/so_locations'
|
|
||||||
DSO_CFLAGS=
|
|
||||||
DSO_PIC_CFLAGS=
|
|
||||||
- MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
- MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
+ MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -soname $@ -o $@'
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -soname $@ -o $@'
|
|
||||||
MKSHLIB_FORCE_ALL='-all'
|
|
||||||
MKSHLIB_UNFORCE_ALL='-none'
|
|
||||||
dnl Might fix the libxpcom.so breakage on this platform as well....
|
|
||||||
@@ -2036,7 +2045,7 @@
|
|
||||||
AC_DEFINE(NSCAP_DISABLE_DEBUG_PTR_TYPES)
|
|
||||||
CXXFLAGS="$CXXFLAGS -I/usr/include/CC"
|
|
||||||
if test ! "$GNU_CC"; then
|
|
||||||
- DSO_LDOPTS='-G -h $@'
|
|
||||||
+ DSO_LDOPTS='-G'
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
@@ -2052,11 +2061,11 @@
|
|
||||||
CXXFLAGS="$CXXFLAGS -xbuiltin=%all -features=tmplife"
|
|
||||||
LDFLAGS="-xildoff -zlazyload -zcombreloc $LDFLAGS"
|
|
||||||
MOZ_OPTIMIZE_FLAGS="-xO4"
|
|
||||||
- MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_FLAGS) $(DSO_LDOPTS) -o $@'
|
|
||||||
- MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_FLAGS) -G -Wl,-z -Wl,muldefs -o $@'
|
|
||||||
+ MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_FLAGS) $(DSO_LDOPTS) -h $@ -o $@'
|
|
||||||
+ KCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_FLAGS) -G -Wl,-z -Wl,muldefs -h $@ -o $@'
|
|
||||||
MKSHLIB_FORCE_ALL='-Qoption ld -z,allextract'
|
|
||||||
MKSHLIB_UNFORCE_ALL=''
|
|
||||||
- DSO_LDOPTS='-G -Qoption ld -z,muldefs -h $@'
|
|
||||||
+ DSO_LDOPTS='-G -Qoption ld -z,muldefs'
|
|
||||||
AR_LIST="$AR t"
|
|
||||||
AR_EXTRACT="$AR x"
|
|
||||||
AR_DELETE="$AR d"
|
|
||||||
@@ -2086,7 +2095,7 @@
|
|
||||||
AC_LANG_RESTORE
|
|
||||||
else
|
|
||||||
ASFLAGS="$ASFLAGS -fPIC"
|
|
||||||
- DSO_LDOPTS='-G -h $@'
|
|
||||||
+ DSO_LDOPTS='-G'
|
|
||||||
_WARNINGS_CFLAGS=''
|
|
||||||
_WARNINGS_CXXFLAGS=''
|
|
||||||
if test "$OS_RELEASE" = "5.3"; then
|
|
||||||
@@ -2444,8 +2453,25 @@
|
|
||||||
fi
|
|
||||||
rm -f conftest.[cs]
|
|
||||||
])
|
|
||||||
- if test "$ac_cv_visibility_hidden" = "yes"; then
|
|
||||||
- AC_DEFINE(HAVE_VISIBILITY_HIDDEN_ATTRIBUTE)
|
|
||||||
+ if test "$ac_cv_visibility_hidden" = "yes"; then
|
|
||||||
+ AC_DEFINE(HAVE_VISIBILITY_HIDDEN_ATTRIBUTE)
|
|
||||||
+
|
|
||||||
+ AC_CACHE_CHECK(for visibility(default) attribute,
|
|
||||||
+ ac_cv_visibility_default,
|
|
||||||
+ [cat > conftest.c <<EOF
|
|
||||||
+ int foo __attribute__ ((visibility ("default"))) = 1;
|
|
||||||
+EOF
|
|
||||||
+ ac_cv_visibility_default=no
|
|
||||||
+ if ${CC-cc} -fvisibility=hidden -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
|
|
||||||
+ if ! grep '\.hidden.*foo' conftest.s >/dev/null; then
|
|
||||||
+ ac_cv_visibility_default=yes
|
|
||||||
+ fi
|
|
||||||
+ fi
|
|
||||||
+ rm -f conftest.[cs]
|
|
||||||
+ ])
|
|
||||||
+ if test "$ac_cv_visibility_default" = "yes"; then
|
|
||||||
+ AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE)
|
|
||||||
+
|
|
||||||
AC_CACHE_CHECK(for visibility pragma support,
|
|
||||||
ac_cv_visibility_pragma,
|
|
||||||
[cat > conftest.c <<EOF
|
|
||||||
@@ -2465,12 +2491,35 @@
|
|
||||||
rm -f conftest.[cs]
|
|
||||||
])
|
|
||||||
if test "$ac_cv_visibility_pragma" = "yes"; then
|
|
||||||
- AC_DEFINE(HAVE_VISIBILITY_PRAGMA)
|
|
||||||
- VISIBILITY_FLAGS='-I$(DIST)/include/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
|
|
||||||
- WRAP_SYSTEM_INCLUDES=1
|
|
||||||
- fi
|
|
||||||
- fi
|
|
||||||
-fi # GNU_CC
|
|
||||||
+ AC_CACHE_CHECK(For x86_64 gcc visibility bug with builtins (GCC bug 20297),
|
|
||||||
+ ac_cv_have_visibility_builtin_bug,
|
|
||||||
+ [cat > conftest.c <<EOF
|
|
||||||
+#pragma GCC visibility push(hidden)
|
|
||||||
+#pragma GCC visibility push(default)
|
|
||||||
+#include <string.h>
|
|
||||||
+#pragma GCC visibility pop
|
|
||||||
+
|
|
||||||
+__attribute__ ((visibility ("default"))) void Func() {
|
|
||||||
+ char c[[100]];
|
|
||||||
+ memset(c, 0, sizeof(c));
|
|
||||||
+}
|
|
||||||
+EOF
|
|
||||||
+ ac_cv_have_visibility_builtin_bug=no
|
|
||||||
+ if ! ${CC-cc} ${DSO_PIC_CFLAGS} ${DSO_LDOPTS} -O2 -o conftest.so conftest.c >/dev/null 2>&1; then
|
|
||||||
+ ac_cv_have_visibility_builtin_bug=yes
|
|
||||||
+ fi
|
|
||||||
+ rm -f conftest.{c,so}
|
|
||||||
+ ])
|
|
||||||
+ if test "$ac_cv_have_visibility_builtin_bug" = "no"; then
|
|
||||||
+ VISIBILITY_FLAGS='-I$(DIST)/include/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h'
|
|
||||||
+ WRAP_SYSTEM_INCLUDES=1
|
|
||||||
+ else
|
|
||||||
+ VISIBILITY_FLAGS='-fvisibility=hidden'
|
|
||||||
+ fi # have visibility pragma bug
|
|
||||||
+ fi # have visibility pragma
|
|
||||||
+ fi # have visibility(default) attribute
|
|
||||||
+ fi # have visibility(hidden) attribute
|
|
||||||
+fi # GNU_CC
|
|
||||||
|
|
||||||
AC_SUBST(WRAP_SYSTEM_INCLUDES)
|
|
||||||
AC_SUBST(VISIBILITY_FLAGS)
|
|
||||||
--- mozilla/js/src/jstypes.h.visibility 2005-09-18 00:35:05.000000000 -0400
|
|
||||||
+++ mozilla/js/src/jstypes.h 2006-09-04 23:26:15.000000000 -0400
|
|
||||||
@@ -109,7 +109,7 @@
|
|
||||||
|
|
||||||
#else /* Unix */
|
|
||||||
|
|
||||||
-#ifdef HAVE_VISIBILITY_PRAGMA
|
|
||||||
+#ifdef HAVE_VISIBILITY_ATTRIBUTE
|
|
||||||
#define JS_EXTERNAL_VIS __attribute__((visibility ("default")))
|
|
||||||
#else
|
|
||||||
#define JS_EXTERNAL_VIS
|
|
||||||
--- mozilla/modules/zlib/src/mozzconf.h.visibility 2005-08-04 15:14:14.000000000 -0400
|
|
||||||
+++ mozilla/modules/zlib/src/mozzconf.h 2006-09-04 23:26:15.000000000 -0400
|
|
||||||
@@ -41,7 +41,7 @@
|
|
||||||
#undef ZLIB_DLL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#ifdef HAVE_VISIBILITY_PRAGMA
|
|
||||||
+#ifdef HAVE_VISIBILITY_ATTRIBUTE
|
|
||||||
#define ZEXTERN __attribute__((visibility ("default"))) extern
|
|
||||||
#endif
|
|
||||||
|
|
||||||
--- mozilla/modules/oji/src/nsJVMManager.cpp.visibility 2005-08-22 10:09:59.000000000 -0400
|
|
||||||
+++ mozilla/modules/oji/src/nsJVMManager.cpp 2006-09-04 23:26:15.000000000 -0400
|
|
||||||
@@ -845,7 +845,7 @@
|
|
||||||
return fStatus;
|
|
||||||
}
|
|
||||||
|
|
||||||
-extern "C" nsresult JSJ_RegisterLiveConnectFactory(void);
|
|
||||||
+extern "C" NS_VISIBILITY_DEFAULT nsresult JSJ_RegisterLiveConnectFactory(void);
|
|
||||||
|
|
||||||
PRBool
|
|
||||||
nsJVMManager::MaybeStartupLiveConnect(void)
|
|
||||||
--- mozilla/modules/libreg/include/NSReg.h.visibility 2004-12-15 00:52:38.000000000 -0500
|
|
||||||
+++ mozilla/modules/libreg/include/NSReg.h 2006-09-04 23:26:15.000000000 -0400
|
|
||||||
@@ -129,7 +129,7 @@
|
|
||||||
#endif
|
|
||||||
#elif defined XP_MAC
|
|
||||||
#define VR_INTERFACE(__x) __declspec(export) __x
|
|
||||||
-#elif defined (HAVE_VISIBILITY_PRAGMA)
|
|
||||||
+#elif defined (HAVE_VISIBILITY_ATTRIBUTE)
|
|
||||||
#define VR_INTERFACE(type) __attribute__ ((visibility ("default"))) type
|
|
||||||
#else
|
|
||||||
#define VR_INTERFACE(type) type
|
|
@ -31,9 +31,6 @@ Source100: find-external-requires
|
|||||||
# Build patches
|
# Build patches
|
||||||
Patch1: firefox-2.0-link-layout.patch
|
Patch1: firefox-2.0-link-layout.patch
|
||||||
Patch2: firefox-1.0-prdtoa.patch
|
Patch2: firefox-1.0-prdtoa.patch
|
||||||
Patch4: firefox-1.5.0.10-with-system-nss.patch
|
|
||||||
Patch5: thunderbird-1.5-visibility.patch
|
|
||||||
Patch6: firefox-1.5.0.10-nss-system-nspr.patch
|
|
||||||
|
|
||||||
Patch10: thunderbird-0.7.3-psfonts.patch
|
Patch10: thunderbird-0.7.3-psfonts.patch
|
||||||
Patch11: thunderbird-0.7.3-gnome-uriloader.patch
|
Patch11: thunderbird-0.7.3-gnome-uriloader.patch
|
||||||
@ -61,7 +58,6 @@ Patch89: firefox-2.0-pango-ligatures.patch
|
|||||||
# Other
|
# Other
|
||||||
Patch102: firefox-1.5-theme-change.patch
|
Patch102: firefox-1.5-theme-change.patch
|
||||||
Patch103: thunderbird-1.5-profile-migrator.patch
|
Patch103: thunderbird-1.5-profile-migrator.patch
|
||||||
Patch104: firefox-1.5-dnd-nograb.patch
|
|
||||||
Patch106: firefox-2.0-indicator-crash.patch
|
Patch106: firefox-2.0-indicator-crash.patch
|
||||||
Patch111: thunderbird-path.patch
|
Patch111: thunderbird-path.patch
|
||||||
Patch112: thunderbird-2.0-enable-debug.patch
|
Patch112: thunderbird-2.0-enable-debug.patch
|
||||||
@ -112,10 +108,7 @@ Mozilla Thunderbird is a standalone mail and newsgroup client.
|
|||||||
%setup -q -n mozilla
|
%setup -q -n mozilla
|
||||||
%patch1 -p1 -b .link-layout
|
%patch1 -p1 -b .link-layout
|
||||||
%patch2 -p0
|
%patch2 -p0
|
||||||
#%patch4 -p1
|
|
||||||
#%patch5 -p1 -b .visibility
|
|
||||||
|
|
||||||
#%patch6 -p1
|
|
||||||
%patch10 -p1 -b .psfonts
|
%patch10 -p1 -b .psfonts
|
||||||
%patch11 -p1 -b .gnome-uriloader
|
%patch11 -p1 -b .gnome-uriloader
|
||||||
%patch24 -p1 -b .default-applications
|
%patch24 -p1 -b .default-applications
|
||||||
@ -145,7 +138,6 @@ popd
|
|||||||
|
|
||||||
%patch102 -p0 -b .theme-change
|
%patch102 -p0 -b .theme-change
|
||||||
%patch103 -p1 -b .profile-migrator
|
%patch103 -p1 -b .profile-migrator
|
||||||
#%patch104 -p1 -b .dnd-nograb
|
|
||||||
%patch106 -p1 -b .indicator-crash
|
%patch106 -p1 -b .indicator-crash
|
||||||
%patch111 -p1 -b .path
|
%patch111 -p1 -b .path
|
||||||
%patch112 -p1 -b .debug
|
%patch112 -p1 -b .debug
|
||||||
|
Loading…
Reference in New Issue
Block a user