Change default PREFIX to /opt/local

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
GuofangandClaude Sonnet 5.5 committed 2026-11-07 11:13:04 +08:00
1 parent 68abc5042c
commit 0b7f8d829b
5 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -38,10 +38,10 @@ RUN dnf install --assumeyes --enablerepo=crb \
RUN git config --global url."https://wangguofang.net/github.com/".insteadOf "https://github.com/"
# Install prefix of every dependency. Libraries are installed under ${PREFIX}/lib64.
ARG PREFIX=/usr/local
ARG PREFIX=/opt/local
# Make the compiler, CMake, pkg-config and the shell find earlier dependencies under a prefix other
# than the default /usr/local. CMake (>= 3.29) takes its default install prefix from the environment.
# than the default /opt/local. CMake (>= 3.29) takes its default install prefix from the environment.
ENV PATH=${PREFIX}/bin:${PATH} \
C_INCLUDE_PATH=${PREFIX}/include \
CPLUS_INCLUDE_PATH=${PREFIX}/include \
+1 -1
View File
@@ -3,7 +3,7 @@
set -eu
IMAGE_NAME="${IMAGE_NAME:-rocky9-source-stack}"
PREFIX="${PREFIX:-/usr/local}"
PREFIX="${PREFIX:-/opt/local}"
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
SOURCES_DIR="${SOURCES_DIR:-$SCRIPT_DIR/../sources}"
FETCH_SCRIPT="$SCRIPT_DIR/../fetch-sources.sh"