Add an option to enable prebinding for mach-o builds (bug 151087). r=cls.

git-svn-id: svn://10.0.0.236/branches/CHIMERA_M1_0_BRANCH@123213 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%netscape.com
2002-06-13 09:07:26 +00:00
parent 559b00a06a
commit d58c444039
4 changed files with 513 additions and 479 deletions

View File

@@ -71,6 +71,7 @@ EAZEL_PROFILER_LIBS=@EAZEL_PROFILER_LIBS@
GC_LEAK_DETECTOR = @GC_LEAK_DETECTOR@
NS_TRACE_MALLOC = @NS_TRACE_MALLOC@
USE_ELF_DYNSTR_GC = @USE_ELF_DYNSTR_GC@
USE_PREBINDING = @USE_PREBINDING@
MOZ_MAIL_NEWS = @MOZ_MAIL_NEWS@
MOZ_CALENDAR = @MOZ_CALENDAR@
MOZ_PLAINTEXT_EDITOR_ONLY = @MOZ_PLAINTEXT_EDITOR_ONLY@

View File

@@ -651,6 +651,13 @@ endif
endif
endif
ifeq ($(OS_ARCH),Darwin)
ifdef USE_PREBINDING
export LD_PREBIND=1
export LD_SEG_ADDR_TABLE=$(shell cd $(topsrcdir); pwd)/config/prebind-address-table
endif
endif
ifdef MOZ_NATIVE_MAKEDEPEND
MKDEPEND_DIR =
MKDEPEND = $(MOZ_NATIVE_MAKEDEPEND)

975
mozilla/configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -3543,6 +3543,14 @@ MOZ_ARG_ENABLE_BOOL(elf-dynstr-gc,
USE_ELF_DYNSTR_GC=1,
USE_ELF_DYNSTR_GC= )
dnl ========================================================
dnl = --enable-prebinding
dnl ========================================================
MOZ_ARG_ENABLE_BOOL(prebinding,
[ --enable-prebinding Enable prebinding (Mac OS X only)],
USE_PREBINDING=1,
USE_PREBINDING= )
dnl ========================================================
dnl =
dnl = Profiling and Instrumenting
@@ -4326,6 +4334,7 @@ AC_SUBST(MOZ_USER_DIR)
AC_SUBST(ENABLE_STRIP)
AC_SUBST(USE_ELF_DYNSTR_GC)
AC_SUBST(USE_PREBINDING)
AC_SUBST(MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS)
AC_SUBST(MOZ_COMPONENT_NSPR_LIBS)
AC_SUBST(MOZ_COMPONENT_XPCOM_LIBS)