1Upstream-Status: Inappropriate [embedded specific] 2 3There are hardcode paths in configure.in eg: /usr/include, $HOME/include etc. 4These paths will cause Makefile to search host path when doing cross-compiling. 5and bitbake will prompt this as an error. So remove them. 6 7Signed-off-by: Song.Li <Song.Li@windriver.com> 8Signed-off-by: Kai Kang <kai.kang@windriver.com> 9--- 10 configure.in | 10 ++-------- 11 1 file changed, 2 insertions(+), 8 deletions(-) 12 13diff --git a/configure.in b/configure.in 14index bcfd5bc..5b24947 100644 15--- a/configure.in 16+++ b/configure.in 17@@ -32,21 +32,15 @@ MYPCFILES="tokyocabinet.pc" 18 19 # Building flags 20 MYCFLAGS="-std=c99 -Wall -fPIC -fsigned-char -O2" 21-MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -I$HOME/include -I/usr/local/include" 22+MYCPPFLAGS="-I." 23 MYCPPFLAGS="$MYCPPFLAGS -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__" 24-MYLDFLAGS="-L. -L\$(LIBDIR) -L$HOME/lib -L/usr/local/lib" 25+MYLDFLAGS="-L." 26 MYCMDLDFLAGS="" 27 MYRUNPATH="\$(LIBDIR)" 28 MYLDLIBPATHENV="LD_LIBRARY_PATH" 29 MYPOSTCMD="true" 30 31 # Building paths 32-PATH="$PATH:$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" 33-PATH="$PATH:/opt/SUNWspro/bin:/usr/ccs/bin:/usr/xpg4/bin:/usr/xpg6/bin:/usr/ucb" 34-CPATH="$HOME/include:/usr/local/include:$CPATH" 35-LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LIBRARY_PATH" 36-LD_LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH" 37-PKG_CONFIG_PATH="$HOME/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" 38 export PATH CPATH LIBRARY_PATH LD_LIBRARY_PATH PKG_CONFIG_PATH 39 40 41-- 421.7.9.5 43 44