From patchwork Mon Feb 4 10:44:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [5/5] libpcap: fix relative path references Date: Mon, 04 Feb 2013 10:44:16 -0000 From: Ross Burton X-Patchwork-Id: 43983 Message-Id: <1359974656-21894-6-git-send-email-ross.burton@intel.com> To: openembedded-core@lists.openembedded.org do_configure was using relative paths in do_configure with the assumption that $S is the same as $B. This isn't always true, so explicitly use $S. Signed-off-by: Ross Burton --- meta/recipes-connectivity/libpcap/libpcap.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-connectivity/libpcap/libpcap.inc b/meta/recipes-connectivity/libpcap/libpcap.inc index c87066c..b9c3640 100644 --- a/meta/recipes-connectivity/libpcap/libpcap.inc +++ b/meta/recipes-connectivity/libpcap/libpcap.inc @@ -27,8 +27,8 @@ CFLAGS_prepend = "-I${S} " CXXFLAGS_prepend = "-I${S} " do_configure_prepend () { - if [ ! -e acinclude.m4 ]; then - cat aclocal.m4 > acinclude.m4 + if [ ! -e ${S}/acinclude.m4 ]; then + cat ${S}/aclocal.m4 > ${S}/acinclude.m4 fi sed -i -e's,^V_RPATH_OPT=.*$,V_RPATH_OPT=,' ${S}/pcap-config.in }