From b0d8b00fccc7647e0c8f08f91f163c0f3d5c4c23 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Tue, 20 Feb 2024 14:03:44 +0800 Subject: [PATCH] optimize pkg-config build process --- src/SPC/builder/unix/library/pkgconfig.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SPC/builder/unix/library/pkgconfig.php b/src/SPC/builder/unix/library/pkgconfig.php index 52ec5e4d..18e9b4b9 100644 --- a/src/SPC/builder/unix/library/pkgconfig.php +++ b/src/SPC/builder/unix/library/pkgconfig.php @@ -21,6 +21,8 @@ trait pkgconfig '--disable-shared ' . '--enable-static ' . '--with-internal-glib ' . + '--disable-host-tool ' . + '--with-pic ' . '--prefix=' . BUILD_ROOT_PATH . ' ' . '--without-sysroot ' . '--without-system-include-path ' . @@ -29,6 +31,7 @@ trait pkgconfig ) ->exec('make clean') ->exec("make -j{$this->builder->concurrency}") - ->exec('make install'); + ->exec('make install-exec'); + shell()->exec('strip ' . BUILD_ROOT_PATH . '/bin/pkg-config'); } }