2008-09-30 11:57:47 +00:00
|
|
|
--- subversion-1.5.2/build.conf.pie
|
|
|
|
+++ subversion-1.5.2/build.conf
|
2008-06-26 13:44:29 +00:00
|
|
|
@@ -452,7 +452,7 @@ type = swig_lib
|
2006-09-11 09:08:15 +00:00
|
|
|
lang = python
|
|
|
|
path = subversion/bindings/swig/python/libsvn_swig_py
|
2008-06-26 13:44:29 +00:00
|
|
|
libs = libsvn_client libsvn_wc libsvn_ra libsvn_delta libsvn_subr apriconv apr
|
2006-09-11 09:08:15 +00:00
|
|
|
-link-cmd = $(LINK) $(SWIG_PY_LIBS)
|
|
|
|
+link-cmd = $(LINK_LIB) $(SWIG_PY_LIBS)
|
|
|
|
install = swig-py-lib
|
|
|
|
# need special build rule to include -DSWIGPYTHON
|
|
|
|
compile-cmd = $(COMPILE_SWIG_PY)
|
2008-06-26 13:44:29 +00:00
|
|
|
@@ -475,7 +475,7 @@ type = swig_lib
|
|
|
|
lang = ruby
|
|
|
|
path = subversion/bindings/swig/ruby/libsvn_swig_ruby
|
|
|
|
libs = libsvn_client libsvn_wc libsvn_delta libsvn_subr apriconv apr
|
|
|
|
-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)
|
2008-09-30 11:57:47 +00:00
|
|
|
--- subversion-1.5.2/build/generator/gen_base.py.pie
|
|
|
|
+++ subversion-1.5.2/build/generator/gen_base.py
|
2008-06-26 13:44:29 +00:00
|
|
|
@@ -411,6 +411,9 @@ class TargetExe(TargetLinked):
|
|
|
|
self.manpages = options.get('manpages', '')
|
|
|
|
self.testing = options.get('testing')
|
|
|
|
|
|
|
|
+ if self.install == 'test' or self.install == 'bdb-test':
|
|
|
|
+ self.link_cmd = '$(LINK_TEST)'
|
|
|
|
+
|
|
|
|
def add_dependencies(self):
|
|
|
|
TargetLinked.add_dependencies(self)
|
|
|
|
|
|
|
|
@@ -453,8 +456,11 @@ class TargetLib(TargetLinked):
|
|
|
|
self.msvc_fake = options.get('msvc-fake') == 'yes' # has fake target
|
|
|
|
self.msvc_export = string.split(options.get('msvc-export', ''))
|
|
|
|
|
|
|
|
- ### hmm. this is Makefile-specific
|
|
|
|
- self.link_cmd = '$(LINK_LIB)'
|
|
|
|
+ ### more Makefile-specific stuff:
|
|
|
|
+ if self.install == 'test':
|
|
|
|
+ self.link_cmd = '$(LINK_TEST_LIB)'
|
|
|
|
+ elif self.link_cmd == '$(LINK)':
|
|
|
|
+ self.link_cmd = '$(LINK_LIB)'
|
|
|
|
|
|
|
|
class TargetApacheMod(TargetLib):
|
|
|
|
|
2008-09-30 11:57:47 +00:00
|
|
|
--- subversion-1.5.2/Makefile.in.pie
|
|
|
|
+++ subversion-1.5.2/Makefile.in
|
2008-06-26 13:44:29 +00:00
|
|
|
@@ -2,7 +2,7 @@
|
|
|
|
# Makefile.in: template Makefile for Subversion
|
|
|
|
#
|
|
|
|
# ====================================================================
|
|
|
|
-# Copyright (c) 2000-2006 CollabNet. All rights reserved.
|
|
|
|
+# Copyright (c) 2000-2006, 2008 CollabNet. All rights reserved.
|
|
|
|
#
|
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
2008-09-30 11:57:47 +00:00
|
|
|
@@ -151,9 +151,10 @@ CPPFLAGS = @CPPFLAGS@ $(EXTRA_CPPFLAGS)
|
2004-09-09 12:50:43 +00:00
|
|
|
LDFLAGS = @LDFLAGS@ $(EXTRA_LDFLAGS)
|
2008-09-30 11:57:47 +00:00
|
|
|
SWIG_LDFLAGS = @SWIG_LDFLAGS@ $(EXTRA_SWIG_LDFLAGS)
|
2004-09-09 12:50:43 +00:00
|
|
|
|
|
|
|
-COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES)
|
|
|
|
+BASE_COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES)
|
2004-09-30 13:17:46 +00:00
|
|
|
+COMPILE = $(BASE_COMPILE) -fpie
|
2008-06-26 13:44:29 +00:00
|
|
|
COMPILE_CXX = $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDES)
|
2004-09-30 12:04:30 +00:00
|
|
|
-LT_COMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE)
|
2004-09-09 12:50:43 +00:00
|
|
|
+LT_COMPILE = $(LIBTOOL) $(LTFLAGS) --mode=compile $(BASE_COMPILE)
|
|
|
|
|
|
|
|
# special compilation for files destined for mod_dav_svn
|
|
|
|
COMPILE_APACHE_MOD = $(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) $(APACHE_INCLUDES) $(INCLUDES) -o $@ -c
|
2008-09-30 11:57:47 +00:00
|
|
|
@@ -168,8 +169,11 @@ COMPILE_JAVAHL_CXX = $(LIBTOOL) $(LTCXXF
|
2005-05-24 15:50:39 +00:00
|
|
|
COMPILE_JAVAHL_JAVAC = $(JAVAC) $(JAVAC_FLAGS)
|
|
|
|
COMPILE_JAVAHL_JAVAH = $(JAVAH)
|
2004-09-09 12:50:43 +00:00
|
|
|
|
|
|
|
-LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS)
|
2004-09-09 12:51:43 +00:00
|
|
|
-LINK_LIB = $(LINK) -rpath $(libdir)
|
2004-09-09 12:50:43 +00:00
|
|
|
+BASE_LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS)
|
|
|
|
+LINK = $(BASE_LINK) -pie
|
|
|
|
+LINK_TEST = $(BASE_LINK) -no-install
|
2004-09-09 12:51:43 +00:00
|
|
|
+LINK_LIB = $(BASE_LINK) -rpath $(libdir)
|
2004-09-09 12:50:43 +00:00
|
|
|
+LINK_TEST_LIB = $(BASE_LINK)
|
|
|
|
|
|
|
|
# special link rule for mod_dav_svn
|
2006-09-11 09:08:15 +00:00
|
|
|
LINK_APACHE_MOD = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS) -rpath $(APACHE_LIBEXECDIR) -avoid-version -module $(APACHE_LDFLAGS)
|