mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Oliver Graute <oliver.graute@gmail.com>
To: ptxdist@pengutronix.de
Cc: Oliver Graute <oliver.graute@neuhaus.de>
Subject: [ptxdist] [PATCH 3/3] added apu-config-add-SYSROOT.patch
Date: Mon, 16 Feb 2015 14:59:45 +0100	[thread overview]
Message-ID: <1424095185-30347-3-git-send-email-oliver.graute@neuhaus.de> (raw)
In-Reply-To: <1424095185-30347-1-git-send-email-oliver.graute@neuhaus.de>


Signed-off-by: Oliver Graute <oliver.graute@neuhaus.de>
---
 .../0001-apu-config-add-SYSROOT.patch              |   39 ++++++++++++++++++++
 patches/apr-util-1.5.4/series                      |    1 +
 2 files changed, 40 insertions(+)
 create mode 100644 patches/apr-util-1.5.4/0001-apu-config-add-SYSROOT.patch
 create mode 100644 patches/apr-util-1.5.4/series

diff --git a/patches/apr-util-1.5.4/0001-apu-config-add-SYSROOT.patch b/patches/apr-util-1.5.4/0001-apu-config-add-SYSROOT.patch
new file mode 100644
index 0000000..d8a594c
--- /dev/null
+++ b/patches/apr-util-1.5.4/0001-apu-config-add-SYSROOT.patch
@@ -0,0 +1,39 @@
+diff -rupN AM/apu-config.in AN/apu-config.in
+--- AM/apu-config.in	2010-09-29 16:21:25.000000000 +0200
++++ AN/apu-config.in	2015-02-13 12:58:30.942178404 +0100
+@@ -84,7 +84,7 @@ if test $# -eq 0; then
+ fi
+ 
+ if test "$location" = "installed"; then
+-    LA_FILE="$libdir/lib${APRUTIL_LIBNAME}.la"
++    LA_FILE="${SYSROOT}$libdir/lib${APRUTIL_LIBNAME}.la"
+ 
+     LIBS=`echo "$LIBS" | sed -e "s $APU_BUILD_DIR/xml/expat $prefix g" -e "s $prefix/libexpat.la -lexpat g"`
+     LDFLAGS=`echo "$LDFLAGS" | sed -e "s $APU_BUILD_DIR/xml/expat $prefix g"`
+@@ -132,7 +132,7 @@ while test $# -gt 0; do
+     ;;
+     --includedir)
+     if test "$location" = "installed"; then
+-        flags="$includedir"
++        flags="${SYSROOT}$includedir"
+     elif test "$location" = "source"; then
+         flags="$APU_SOURCE_DIR/include"
+     else
+@@ -144,7 +144,7 @@ while test $# -gt 0; do
+     ;;
+     --includes)
+     if test "$location" = "installed"; then
+-        flags="$flags -I$includedir $INCLUDES"
++        flags="$flags -I${SYSROOT}$includedir $INCLUDES"
+     elif test "$location" = "source"; then
+         flags="$flags -I$APU_SOURCE_DIR/include $INCLUDES"
+     else
+@@ -166,7 +166,7 @@ while test $# -gt 0; do
+     --link-ld)
+     if test "$location" = "installed"; then
+         ### avoid using -L if libdir is a "standard" location like /usr/lib
+-        flags="$flags -L$libdir -l$APRUTIL_LIBNAME"
++        flags="$flags -L${SYSROOT}$libdir -l$APRUTIL_LIBNAME"
+     else
+         flags="$flags -L$APU_BUILD_DIR -l$APRUTIL_LIBNAME"
+     fi
diff --git a/patches/apr-util-1.5.4/series b/patches/apr-util-1.5.4/series
new file mode 100644
index 0000000..4773caa
--- /dev/null
+++ b/patches/apr-util-1.5.4/series
@@ -0,0 +1 @@
+0001-apu-config-add-SYSROOT.patch
-- 
1.7.9.5


-- 
ptxdist mailing list
ptxdist@pengutronix.de

      parent reply	other threads:[~2015-02-16 14:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-16 13:59 [ptxdist] [PATCH 1/3] apache2: first try to update apache apr and apr-util Oliver Graute
2015-02-16 13:59 ` [ptxdist] [PATCH 2/3] added apr-gen-test-char.patch Oliver Graute
2015-02-16 13:59 ` Oliver Graute [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1424095185-30347-3-git-send-email-oliver.graute@neuhaus.de \
    --to=oliver.graute@gmail.com \
    --cc=oliver.graute@neuhaus.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox