summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-23 00:26:40 +0800
committerruki <[email protected]>2022-12-23 00:26:40 +0800
commit0cc45912f6ab2779b9c2f4079feee214d4bd0c6f (patch)
tree208ad3e6226a5aa9dfc97c28552d1a5b93fcb757 /configure
parenta4a777d6a9efeabad8747577ed04827623a165b9 (diff)
update configure
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index 0b939eeb5..7cd8d3ab8 100755
--- a/configure
+++ b/configure
@@ -3535,6 +3535,10 @@ _gmake_add_switches() {
echo "V=@" >> "${xmake_sh_makefile}"
echo "endif" >> "${xmake_sh_makefile}"
echo "" >> "${xmake_sh_makefile}"
+ echo "ifeq (\$(PREFIX),)" >> "${xmake_sh_makefile}"
+ echo "PREFIX=${_install_prefix_default}" >> "${xmake_sh_makefile}"
+ echo "endif" >> "${xmake_sh_makefile}"
+ echo "" >> "${xmake_sh_makefile}"
}
_gmake_add_flags() {
@@ -3758,7 +3762,7 @@ _gmake_add_install_target() {
path_filename "${targetfile}"; local filename="${_ret}"
_get_target_item "${target}" "installdir"; local installdir="${_ret}"
if test_z "${installdir}"; then
- installdir=${_install_prefix_default}
+ installdir="\$(PREFIX)"
fi
# install target file