[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] ft2demos with X11 on OS X (XQuartz) (Re: Freetype-devel D
From: |
Hin-Tak Leung |
Subject: |
Re: [ft-devel] ft2demos with X11 on OS X (XQuartz) (Re: Freetype-devel Digest, Vol 134, Issue 22) |
Date: |
Sat, 26 Mar 2016 19:55:41 +0000 (UTC) |
Oh, it is possible to modify binary, after build, to embed specific library
locations using
install_name_tool . see
http://www.unix.com/man-page/osx/1/install_name_tool/
--------------------------------------------
On Sat, 26/3/16, Hin-Tak Leung <address@hidden> wrote:
The library dependence is likely
dynamic... you could examine which copy of the library
it is trying to load by:
otool -L <your_binary>
To some extent, you can override it with:
export DYLD_LIBRARY_PATH=/opt/X11/lib
before you run the binary, but this is generally frown upon,
as other things may break.
To force embedding a specific library location into the
binary at build time, use the
compiler/linker -rpath option - see this, for example:
http://stackoverflow.com/questions/4513799/how-to-set-the-runtime-path-rpath-of-an-executable-with-gcc-under-mac-osx