diff options
-rwxr-xr-x | packages/curl.sh | 3 | ||||
-rw-r--r-- | scripts/include/common.sh | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/packages/curl.sh b/packages/curl.sh index 1d6385d..327c575 100755 --- a/packages/curl.sh +++ b/packages/curl.sh @@ -3,6 +3,9 @@ function package_build { run_git_switch_branch master + # this need because out of source tree compilation is broken + run_enable_same_dir_build + run_autoreconf -i run_configure diff --git a/scripts/include/common.sh b/scripts/include/common.sh index e286f5d..27c1767 100644 --- a/scripts/include/common.sh +++ b/scripts/include/common.sh @@ -116,6 +116,13 @@ function run_autoreconf { check_error $? } +function run_enable_same_dir_build { + echo "copy sources from $srcdir to ${builddir}" + cp -r "$srcdir" "${builddir}/.." + export srcdir="$builddir" + echo "change src dir to $srcdir" +} + function run_configure { cd "${builddir}" check_error $? |