aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-12-30 23:09:01 +0300
committerCem Keylan <cem@ckyln.com>2020-12-30 23:09:01 +0300
commit58ba9b507029c422c843bef5ee2fc63147b60ee3 (patch)
tree6bdf6af89af3795343ce80e6b318905f1fe0ccf5
parent6e2624c7d7c40cf312ccebd4c3479a58997f0fad (diff)
downloadrepository-58ba9b507029c422c843bef5ee2fc63147b60ee3.tar.gz
pkgconf: fix cross build
-rwxr-xr-xcore/pkgconf/build6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/pkgconf/build b/core/pkgconf/build
index 6e976679..40e72d85 100755
--- a/core/pkgconf/build
+++ b/core/pkgconf/build
@@ -1,8 +1,8 @@
#!/bin/sh -e
-./configure \
- --prefix=/usr \
- --sysconfdir=/etc
+[ "$CPT_CROSS_TRIPLET" ] && CC=$CPT_CROSS_TRIPLET-cc
+
+cpt-configure
make CCLD="${CC:-cc} -all-static"
make DESTDIR="$1" install