[geany/geany] e4ab28: waf: set rpath for executable

Thomas Martitz git-noreply at xxxxx
Fri Apr 10 14:16:19 UTC 2015


Branch:      refs/heads/master
Author:      Thomas Martitz <kugel at rockbox.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Fri, 10 Apr 2015 14:16:19 UTC
Commit:      e4ab28058d1482b1b7383138dfee8cfc6f4c5d7f
             https://github.com/geany/geany/commit/e4ab28058d1482b1b7383138dfee8cfc6f4c5d7f

Log Message:
-----------
waf: set rpath for executable

Whether rpath is liked or not, it allows geany to Just Work and is consistent
with autotools


Modified Paths:
--------------
    wscript

Modified: wscript
5 lines changed, 4 insertions(+), 1 deletions(-)
===================================================================
@@ -505,7 +505,7 @@ def build(bld):
         install_path    = '${PREFIX}/bin' if is_win32 else '${LIBDIR}')
 
     # geany executable
-    bld(
+    t = bld(
         features        = ['c', 'cxx', 'cprogram'],
         name            = 'geany_bin',
         target          = 'geany',
@@ -514,6 +514,9 @@ def build(bld):
         defines         = ['G_LOG_DOMAIN="Geany"', 'GEANY_PRIVATE'],
         uselib          = base_uselibs,
         use             = ['geany'])
+    if not is_win32:
+        # http://www.freehackers.org/~tnagy/testdoc/single.html#common_c
+        t.rpath = bld.env['LIBDIR']
 
     # Plugins
     if bld.env['HAVE_PLUGINS'] == 1:



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list