From: Francesco M. <fr...@us...> - 2007-05-06 10:16:36
|
Update of /cvsroot/wxlua/wxLua/build/bakefiles In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv5022/build/bakefiles Modified Files: wxluabase.bkl Log Message: added RPATH stuff to test wxLua binaries under Unix without having to install wxLua system-wide Index: wxluabase.bkl =================================================================== RCS file: /cvsroot/wxlua/wxLua/build/bakefiles/wxluabase.bkl,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** wxluabase.bkl 4 May 2007 20:36:24 -0000 1.38 --- wxluabase.bkl 6 May 2007 10:16:33 -0000 1.39 *************** *** 210,214 **** <lib-path>$(_LIB_DIRNAME)</lib-path> - <!-- both in case we are using system's lua or our own lua, we need yet another linker path --> --- 210,213 ---- *************** *** 230,233 **** --- 229,249 ---- <include file="mac_bundles.bkl" once="1"/> + <!-- RPATH stuff: --> + + <!-- unlike win compilers, Unix's LD linker supports the -rpath option to insert + in the generated ELF files an hint to the OS about where to search the required + shared libraries. This means the user under Unix will be able to run samples + also before installing the component system-wide: + --> + <define-tag name="rpath-to" rules="exe,module"> + <set var="RPATH"> + <if cond="FORMAT=='gnu' and SHARED=='1'">-Wl,-rpath,$(value)/gcc_dll</if> + <if cond="FORMAT=='autoconf' and SHARED=='1'">-Wl,-rpath,$(value)</if> + </set> + + <!-- for autoconf&gnu only (see comments above): --> + <ldflags>$(RPATH)</ldflags> + </define-tag> + <!-- TAGS COPIED FROM wx.bkl AND ADAPTED TO USE 'SHARED' option |