2014-09-08 22:14:38 +00:00
|
|
|
Prevent the linker from adding an rpath to shared libraries. Original
|
|
|
|
patch by David Kimdon <dwhedon@debian.org>. The basic theory is:
|
|
|
|
|
|
|
|
- Split the $(LINK) makefile macro into $(LINK) and $(LINK_LIB).
|
|
|
|
- Comment out LD_RUN_PATH in the Perl makefiles.
|
|
|
|
- Use libtool instead of apxs to install the apache modules.
|
|
|
|
libtool relinks without rpath in this case, apxs obviously doesn't.
|
|
|
|
|
2015-08-18 20:04:51 +00:00
|
|
|
---
|
|
|
|
Makefile.in | 12 +++++++-----
|
|
|
|
build.conf | 4 ++--
|
|
|
|
build/generator/gen_base.py | 3 ++-
|
|
|
|
3 files changed, 11 insertions(+), 8 deletions(-)
|
|
|
|
|
2018-04-12 09:22:01 +00:00
|
|
|
Index: subversion-1.10.0/Makefile.in
|
2015-08-18 20:04:51 +00:00
|
|
|
===================================================================
|
2018-04-12 09:22:01 +00:00
|
|
|
--- subversion-1.10.0.orig/Makefile.in
|
|
|
|
+++ subversion-1.10.0/Makefile.in
|
|
|
|
@@ -264,10 +264,10 @@ COMPILE_CXXHL_CXX = $(LT_COMPILE_CXX) $(
|
2018-04-12 08:58:39 +00:00
|
|
|
COMPILE_GOOGLEMOCK_CXX = $(LT_COMPILE_CXX_NOWARN) $(GOOGLEMOCK_LIB_INCLUDES) -o $@ -c
|
|
|
|
COMPILE_CXXHL_GOOGLEMOCK_CXX = $(LT_COMPILE_CXX) $(CXXHL_INCLUDES) $(GOOGLEMOCK_INCLUDES) -o $@ -c
|
2014-09-08 22:14:38 +00:00
|
|
|
|
|
|
|
-LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS) -rpath $(libdir)
|
|
|
|
-LINK_LIB = $(LINK) $(LT_SO_VERSION)
|
|
|
|
-LINK_CXX = $(LIBTOOL) $(LTCXXFLAGS) --mode=link $(CXX) $(LT_LDFLAGS) $(CXXFLAGS) $(LDFLAGS) -rpath $(libdir)
|
|
|
|
-LINK_CXX_LIB = $(LINK_CXX) $(LT_SO_VERSION)
|
|
|
|
+LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS)
|
|
|
|
+LINK_LIB = $(LINK) $(LT_SO_VERSION) -rpath $(libdir)
|
|
|
|
+LINK_CXX = $(LIBTOOL) $(LTCXXFLAGS) --mode=link $(CXX) $(LT_LDFLAGS) $(CXXFLAGS) $(LDFLAGS)
|
|
|
|
+LINK_CXX_LIB = $(LINK_CXX) $(LT_SO_VERSION) -rpath $(libdir)
|
|
|
|
|
|
|
|
# special link rule for mod_dav_svn
|
2018-04-12 09:22:01 +00:00
|
|
|
LINK_APACHE_MOD = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS) -rpath $(APACHE_LIBEXECDIR) -avoid-version -module $(APACHE_LDFLAGS) -shared
|
|
|
|
@@ -864,7 +864,9 @@ $(SWIG_PL_DIR)/native/Makefile.PL: $(SWI
|
2014-09-08 22:14:38 +00:00
|
|
|
./config.status subversion/bindings/swig/perl/native/Makefile.PL
|
|
|
|
|
2018-04-12 09:22:01 +00:00
|
|
|
$(SWIG_PL_DIR)/native/Makefile: libsvn_swig_perl $(SWIG_PL_DIR)/native/Makefile.PL
|
2015-08-18 20:04:51 +00:00
|
|
|
- cd $(SWIG_PL_DIR)/native; $(PERL) Makefile.PL PREFIX=$(prefix)
|
2014-09-08 22:14:38 +00:00
|
|
|
+ cd $(SWIG_PL_DIR)/native; \
|
2015-08-18 20:04:51 +00:00
|
|
|
+ $(PERL) Makefile.PL PREFIX=$(prefix) INSTALLDIRS=vendor; \
|
2014-09-08 22:14:38 +00:00
|
|
|
+ sed -i -e '/^LD_RUN_PATH/s/^/#/' Makefile Makefile.[a-z]*
|
|
|
|
|
|
|
|
# There is a "readlink -f" command on some systems for the same purpose,
|
|
|
|
# but it's not as portable (e.g. Mac OS X doesn't have it). These should
|
2018-04-12 09:22:01 +00:00
|
|
|
Index: subversion-1.10.0/build.conf
|
2015-08-18 20:04:51 +00:00
|
|
|
===================================================================
|
2018-04-12 09:22:01 +00:00
|
|
|
--- subversion-1.10.0.orig/build.conf
|
|
|
|
+++ subversion-1.10.0/build.conf
|
|
|
|
@@ -568,7 +568,7 @@ lang = python
|
2014-09-08 22:14:38 +00:00
|
|
|
path = subversion/bindings/swig/python/libsvn_swig_py
|
2015-08-18 20:04:51 +00:00
|
|
|
libs = libsvn_client libsvn_wc libsvn_ra libsvn_delta libsvn_subr
|
|
|
|
apriconv apr python swig
|
2014-09-08 22:14:38 +00:00
|
|
|
-link-cmd = $(LINK)
|
|
|
|
+link-cmd = $(LINK_LIB) $(SWIG_PY_LIBS)
|
|
|
|
install = swig-py-lib
|
|
|
|
# need special build rule to include -DSWIGPYTHON
|
|
|
|
compile-cmd = $(COMPILE_SWIG_PY)
|
2018-04-12 09:22:01 +00:00
|
|
|
@@ -594,7 +594,7 @@ type = swig_lib
|
2014-09-08 22:14:38 +00:00
|
|
|
lang = ruby
|
|
|
|
path = subversion/bindings/swig/ruby/libsvn_swig_ruby
|
2015-08-18 20:04:51 +00:00
|
|
|
libs = libsvn_client libsvn_wc libsvn_delta libsvn_subr apriconv apr ruby swig
|
2014-09-08 22:14:38 +00:00
|
|
|
-link-cmd = $(LINK) $(SWIG_RB_LIBS)
|
|
|
|
+link-cmd = $(LINK_LIB) $(SWIG_RB_LIBS)
|
|
|
|
install = swig-rb-lib
|
|
|
|
# need special build rule to include
|
|
|
|
compile-cmd = $(COMPILE_SWIG_RB)
|
2018-04-12 09:22:01 +00:00
|
|
|
Index: subversion-1.10.0/build/generator/gen_base.py
|
2015-08-18 20:04:51 +00:00
|
|
|
===================================================================
|
2018-04-12 09:22:01 +00:00
|
|
|
--- subversion-1.10.0.orig/build/generator/gen_base.py
|
|
|
|
+++ subversion-1.10.0/build/generator/gen_base.py
|
|
|
|
@@ -599,7 +599,7 @@ class TargetLinked(Target):
|
2014-09-08 22:14:38 +00:00
|
|
|
self.install = options.get('install')
|
|
|
|
self.compile_cmd = options.get('compile-cmd')
|
|
|
|
self.sources = options.get('sources', '*.c *.cpp')
|
|
|
|
- self.link_cmd = options.get('link-cmd', '$(LINK)')
|
|
|
|
+ self.link_cmd = options.get('link-cmd', '$(LINK_LIB)')
|
|
|
|
|
|
|
|
self.external_lib = options.get('external-lib')
|
|
|
|
self.external_project = options.get('external-project')
|
2018-04-12 09:22:01 +00:00
|
|
|
@@ -653,6 +653,7 @@ class TargetExe(TargetLinked):
|
2014-09-08 22:14:38 +00:00
|
|
|
extmap = self.gen_obj._extension_map
|
|
|
|
self.objext = extmap['exe', 'object']
|
|
|
|
self.filename = build_path_join(self.path, name + extmap['exe', 'target'])
|
|
|
|
+ self.link_cmd = '$(LINK)'
|
|
|
|
|
|
|
|
self.manpages = options.get('manpages', '')
|
|
|
|
self.testing = options.get('testing')
|