summaryrefslogtreecommitdiffstats
path: root/scripts/pkg-config-wrapper
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2007-06-27 11:28:47 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2007-06-27 11:28:47 +0000
commit202f1ff5cba615a9fd67163e5f2ed56274c60ab3 (patch)
tree1a89786dbed191ab87c520450370d51c39b77422 /scripts/pkg-config-wrapper
parentaff974f0a04fb93f883656a6fc86369766a4507a (diff)
downloadptxdist-202f1ff5cba615a9fd67163e5f2ed56274c60ab3.tar.gz
ptxdist-202f1ff5cba615a9fd67163e5f2ed56274c60ab3.tar.xz
* scripts/pkg-config-wrapper:
don't use -Wl, hack in pkgconfig git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7215 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts/pkg-config-wrapper')
-rwxr-xr-xscripts/pkg-config-wrapper5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/pkg-config-wrapper b/scripts/pkg-config-wrapper
index ef86c5d21..9cea5505e 100755
--- a/scripts/pkg-config-wrapper
+++ b/scripts/pkg-config-wrapper
@@ -53,14 +53,11 @@ else
# 1) protect already given sysroot
# 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.
#
${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;"
+ -e "s~\-L\=~-L${SYSROOT}~g; s~\-I\=~-I${SYSROOT}~g;"
fi
check_pipe_status