[geany/geany] 14bcd9: Fix binary relocation support

Colomban Wendling git-noreply at xxxxx
Fri Jun 26 20:33:16 UTC 2015


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Fri, 26 Jun 2015 20:33:16 UTC
Commit:      14bcd9c87df27ee64e17c22ba01194c6011f4a02
             https://github.com/geany/geany/commit/14bcd9c87df27ee64e17c22ba01194c6011f4a02

Log Message:
-----------
Fix binary relocation support


Modified Paths:
--------------
    src/Makefile.am
    src/utils.c

Modified: src/Makefile.am
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -27,6 +27,10 @@ lib_LTLIBRARIES = libgeany.la
 geany_SOURCES = main.c
 geany_LDADD = libgeany.la $(GTK_LIBS) $(GTHREAD_LIBS) $(INTLLIBS)
 
+if ENABLE_BINRELOC
+geany_LDFLAGS = -Wl,-rpath='$$ORIGIN/../lib'
+endif
+
 geany_includedir = $(includedir)/geany
 geany_include_HEADERS = \
 	app.h \


Modified: src/utils.c
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -33,6 +33,7 @@
 #include "dialogs.h"
 #include "document.h"
 #include "prefs.h"
+#include "prefix.h"
 #include "sciwrappers.h"
 #include "spawn.h"
 #include "support.h"



--------------
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