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

This commit is contained in:
bryner%netscape.com 2002-06-13 08:52:55 +00:00
Родитель 2bc07ba87c
Коммит 88cd513c90
4 изменённых файлов: 26 добавлений и 0 удалений

Просмотреть файл

@ -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@

Просмотреть файл

@ -647,6 +647,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)

Просмотреть файл

@ -0,0 +1,9 @@
0x01000000 @executable_path/libnspr4.dylib
0x02000000 @executable_path/libplds4.dylib
0x03000000 @executable_path/libplc4.dylib
0x04000000 @executable_path/libmozjs.dylib
0x05000000 @executable_path/libxpcom.dylib
0x06000000 @executable_path/libssl3.dylib
0x07000000 @executable_path/libnss3.dylib
0x08000000 @executable_path/libsmime3.dylib
0x09000000 @executable_path/libsoftokn3.dylib

Просмотреть файл

@ -3619,6 +3619,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
@ -4415,6 +4423,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)