Up until now, I've not worried about this concept; I've just let the scripts handle it automagically. However, when Derrick tried to run the Kdevelop project, it silently died, leaving cryptic comments in the logs. We eventually figured out that the problem was that media/ wasn't being found correctly due to a missing symlink. Well, symlinks are an ugly hack for getting a relative path right, so I decided to make a compile-time runtime directory.
This is harder than it sounds. I've altered the autoconf to guess `pwd` for the runtime dir, or to take it on the command line with "--with-runtime-dir":
./configure --with-runtime-dir=/home/simpson/osWorks excellently.
Now, of course, the story doesn't end there. Autoconf turns this setting into a command-line define (-DRUNTIME_DIR=\"/home/simpson/os\"), and then we have, in opensmash.cpp, a few lines that set up the working directory and path. Cool, right? Right?
Right?
TODO: Dunno, good question. Sleep?
~ C.
No comments:
Post a Comment