summaryrefslogtreecommitdiffstats
path: root/doc/BUILD-Mac
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-06-04 16:27:15 +0000
committerjstebbins <[email protected]>2010-06-04 16:27:15 +0000
commit6141bbf563d067e4c2574f85871f1da4e1b664f2 (patch)
tree9b1a255082154ad1121895ecdb52a2cba60f7734 /doc/BUILD-Mac
parent70ee5abfc5b28c7ed2f26ef0ec63a678d3681704 (diff)
MacGui: Add flexible dylib path manipulation so that we can handle external dylibs more easily
At startup, add any extra dylib paths to DYLD_FALLBACK_LIBRARY_PATH. This is the last path searched by the system for dylibs and we add our paths to the end of it's list, so this will never override any system libs or paths the user has explicitly set. Since applications read the environment once at startup, these changes don't take effect until we restart with execv. In order to avoid a possible exec bomb, we add a parameter to the argv list to prevent any further exec's. Note that this causes a minor glitch when running under gdb. The execv triggers a trap. You just have to 'continue'. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3351 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'doc/BUILD-Mac')
-rw-r--r--doc/BUILD-Mac17
1 files changed, 14 insertions, 3 deletions
diff --git a/doc/BUILD-Mac b/doc/BUILD-Mac
index 55a785eea..5416aae23 100644
--- a/doc/BUILD-Mac
+++ b/doc/BUILD-Mac
@@ -1,4 +1,4 @@
-Build Guide for HandBrake svn2591 on Mac OS X
+Build Guide for HandBrake svn3349 on Mac OS X
*********************************************
Table of Contents
@@ -504,6 +504,13 @@ to build the default configuration:
* click Build or Build and Go
+When using Build and Go, xcode launches the application under the gdb
+debugger. gdb will encounter a trap when starting the program. This
+trap is harmless and you should just 'continue'. For the curious, the
+trap occurs because we add some values to the environment with setenv,
+then do a brain transplant with execv. Restarting the application with
+execv triggers the trap.
+
The first build (on an empty `build' directory) will take a bit of
time. You may use the Build Results window to observe progress. The
most time-consuming part of the build is when the external build system
@@ -646,6 +653,10 @@ When troubleshooting build issues, the following files relative to the
Environment (variables) dump as seen when Xcode forks `make'.
Mac OS X only.
+A note about gdb: We perform an extra execv when starting the
+application. This triggers a trap in gdb. It is harmless. You should
+just 'continue' from the trap.
+
Appendix A Project Repository Details
*************************************
@@ -653,7 +664,7 @@ Appendix A Project Repository Details
root: svn://svn.handbrake.fr/HandBrake
branch: trunk
uuid: b64f7644-9d1e-0410-96f1-a4d463321fa5
- rev: 2591
- date: 2009-06-21 13:15:04 -0400
+ rev: 3349
+ date: 2010-06-02 09:49:18 -0700
type: developer