1 |
vapier 14/01/31 08:12:04 |
2 |
|
3 |
Added: apr-util-1.5.3-sysroot.patch |
4 |
Log: |
5 |
Utilize SYSROOT to locate build-time paths when cross-compiling, and drop redundent -L/-R libdir flags to simplify linking. Rewrite build/rules.mk to pick up current env settings rather than clobbering at make time. #385775 by Bertrand Jacquin. |
6 |
|
7 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D2E96200) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-libs/apr-util/files/apr-util-1.5.3-sysroot.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr-util/files/apr-util-1.5.3-sysroot.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/apr-util/files/apr-util-1.5.3-sysroot.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: apr-util-1.5.3-sysroot.patch |
16 |
=================================================================== |
17 |
https://bugs.gentoo.org/385775 |
18 |
|
19 |
utilize $SYSROOT to find the right includedir tree |
20 |
|
21 |
drop the -L/-R paths since we know our libdir is the standard path which |
22 |
the compiler already knows how to locate |
23 |
|
24 |
--- a/apu-config.in |
25 |
+++ b/apu-config.in |
26 |
@@ -25,7 +25,7 @@ prefix="@prefix@" |
27 |
exec_prefix="@exec_prefix@" |
28 |
bindir="@bindir@" |
29 |
libdir="@libdir@" |
30 |
-includedir="@includedir@" |
31 |
+includedir="${SYSROOT}@includedir@" |
32 |
|
33 |
LIBS="@APRUTIL_EXPORT_LIBS@" |
34 |
INCLUDES="@APRUTIL_INCLUDES@" |
35 |
@@ -166,7 +166,7 @@ while test $# -gt 0; do |
36 |
--link-ld) |
37 |
if test "$location" = "installed"; then |
38 |
### avoid using -L if libdir is a "standard" location like /usr/lib |
39 |
- flags="$flags -L$libdir -l$APRUTIL_LIBNAME" |
40 |
+ flags="$flags -l$APRUTIL_LIBNAME" |
41 |
else |
42 |
flags="$flags -L$APU_BUILD_DIR -l$APRUTIL_LIBNAME" |
43 |
fi |
44 |
@@ -182,7 +182,7 @@ while test $# -gt 0; do |
45 |
### avoid using -L if libdir is a "standard" location like /usr/lib |
46 |
# Since the user is specifying they are linking with libtool, we |
47 |
# *know* that -R will be recognized by libtool. |
48 |
- flags="$flags -L$libdir -R$libdir -l$APRUTIL_LIBNAME" |
49 |
+ flags="$flags -l$APRUTIL_LIBNAME" |
50 |
else |
51 |
flags="$flags $LA_FILE" |
52 |
fi |