aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/builder/build-package18
1 files changed, 10 insertions, 8 deletions
diff --git a/scripts/builder/build-package b/scripts/builder/build-package
index c57a209..761fc1f 100755
--- a/scripts/builder/build-package
+++ b/scripts/builder/build-package
@@ -41,14 +41,6 @@ pkg_compile()
make ${MAKE_OPTS} && make DESTDIR="${D}" install
}
-# pkgconfig can be a right pita...
-PKG_CONFIG_LIBDIR="${SYSROOT}/usr/share/pkgconfig:${SYSROOT}/usr/lib/pkgconfig"
-export PKG_CONFIG_LIBDIR PKG_CONFIG_PATH
-export PKG_CONFIG_SYSROOT_DIR="${SYSROOT}"
-
-# Don't pass along the builder jobcontrol data to child processes
-unset MAKEFLAGS
-
import "${1}"
## Cleanup the build build environment
@@ -108,6 +100,16 @@ eval "$(build-query --toolchain "${CHOST}")"
mkenv "compile"
PKG_LOGFILE="${L}/compile.log"
+# pkgconfig can be a right pita...
+PKG_CONFIG_LIBDIR="${SYSROOT}/usr/share/pkgconfig:${SYSROOT}/usr/lib/pkgconfig"
+export PKG_CONFIG_LIBDIR PKG_CONFIG_PATH
+export PKG_CONFIG_SYSROOT_DIR="${SYSROOT}"
+
+# Don't pass along the builder jobcontrol data to child processes
+unset MAKEFLAGS
+
+import "${1}"
+
## Prep the build environment
# Technically much of this should have been done in build-prep, and this sort
# of duplication of work may be useful to make a function within the top-level