summaryrefslogtreecommitdiffstats
path: root/scripts/pkg-config-wrapper
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2007-01-02 15:24:20 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2007-01-02 15:24:20 +0000
commit292b8d550eb1ba7fd7b0f82dfef1b3da89dab4ac (patch)
treec6b27027e88c50b6afc59eac1c7688544ddd710e /scripts/pkg-config-wrapper
parent669178264072f41aecb880647dd3f23e7e0319d9 (diff)
downloadptxdist-292b8d550eb1ba7fd7b0f82dfef1b3da89dab4ac.tar.gz
ptxdist-292b8d550eb1ba7fd7b0f82dfef1b3da89dab4ac.tar.xz
* removed trailing whitespace
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6676 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts/pkg-config-wrapper')
-rwxr-xr-xscripts/pkg-config-wrapper8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/pkg-config-wrapper b/scripts/pkg-config-wrapper
index 6e9a06042..f00655675 100755
--- a/scripts/pkg-config-wrapper
+++ b/scripts/pkg-config-wrapper
@@ -11,7 +11,7 @@ check_pipe_status() {
exit $i
fi
done
-}
+}
if test -z "${SYSROOT}"; then
(
@@ -53,13 +53,13 @@ else
# 2) add sysroot symbol to all absolute paths
# 3) replace sysroot sign to sysroot path
# 4) libtool isn't correctly DESTDIR/SYSROOT aware, it replaces -lfoo by
-# paths leading to host libraries; using -Wl,-lfoo seems to work.
-#
+# paths leading to host libraries; using -Wl,-lfoo seems to work.
+#
${PKG_CONFIG} "${@}" |
sed -e "s~\-L/*${SYSROOT}/*~-L=/~g; s~\-I/*${SYSROOT}/*~-I=/~g;" \
-e "s~\-L/~-L=/~g; s~\-I/~-I=/~g;" \
-e "s~\-L\=~-L${SYSROOT}~g; s~\-I\=~-I${SYSROOT}~g;" \
-e "s~[\t ]\-l~ -Wl,-l~g;"
-fi
+fi
check_pipe_status