<br><br>On Thu, Jun 10, 2010 at 10:47 AM, Caroline Tice <<a href="mailto:ctice@apple.com">ctice@apple.com</a>> wrote:<br>> When built for Mac OS X,  lldb builds as a "framework" which means it has a<br>> directory tree in which<br>
> various necessary additional resources can be put.    In order to get the<br>> embedded Python scripting<br>> stuff working, we have been putting the .py and .so files that in needs into<br>> a Resources subdirectory of<br>
> the lldb.framework.<br>><br>> I'm trying to rewrite the build scripts to be OS-agnostic (or at least to<br>> work ok on Linux).  I am pretty sure<br>> a Linux-built lldb will not be a "framework", and I now have no idea where I<br>
> should put the associated .py<br>> and .so files for lldb.  I would appreciate suggestions/help from someone<br>> more familiar with how this kind<br>> of stuff should work on Linux.<br><br>I'm a little rusty, but I think you want something like the following for the python files (.py and .so):<br>
<br><font class="Apple-style-span" face="'courier new', monospace">export MODULE_NAME=lldb<br># target a specific version<br>export PY_VERSION=2.6<br># -or-<br>#export PY_VERSION=`python -c "import platform; print platform.python_version().rsplit('.', 1)[0]"`<br>
<br># install into:<br>mkdir -p $(python$PY_VERSION-config --prefix)/lib/python$PY_VERSION/site-packages/$MODULE_NAME</font><br><br>I know autotools has macros for this, and it may be different for Fedora/Red Hat machines.  But, this should most likely be passed in from the build system (as Eli says)<br>
<br><div>yours,<br>Bobby<br><br>> -- Caroline Tice<br>> <a href="mailto:ctice@apple.com">ctice@apple.com</a><br>><br>> _______________________________________________<br>> lldb-dev mailing list<br>> <a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>><br>><br><br></div>