mirror of
https://github.com/curl/curl.git
synced 2026-04-18 18:01:42 +03:00
We cannot 'cd' to the ares build dir to get the path, as the directory hasn't
been created at this point yet when we build outside of the source dir.
This commit is contained in:
parent
bbafc27b42
commit
0839d6e6bc
1 changed files with 6 additions and 2 deletions
|
|
@ -1058,8 +1058,12 @@ AC_HELP_STRING([--disable-ares],[Disable ares for name lookups]),
|
|||
AC_CONFIG_SUBDIRS(ares)
|
||||
aresinc=`cd $srcdir/ares && pwd`
|
||||
CPPFLAGS="$CPPFLAGS -I$aresinc"
|
||||
areslib=`cd ares && pwd`
|
||||
LDFLAGS="$LDFLAGS -L$areslib"
|
||||
|
||||
dnl the pwd= below cannot 'cd' into the ares dir to get the full
|
||||
dnl path to it, since it may not exist yet if we build outside of
|
||||
dnl the source tree
|
||||
pwd=`pwd`
|
||||
LDFLAGS="$LDFLAGS -L$pwd/ares"
|
||||
fi
|
||||
else
|
||||
CPPFLAGS="$CPPFLAGS -I$enableval/include"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue