Skip to content

Commit 2b00af7

Browse files
authored
Minor Fix.
● Added. - RUNTIME PREFIX For 100% Binary Portability & Relocation. ★ Signed-Off-By: Oliver ★ ★ Co-Authored-By: Subhasish, James, Mark, Steffen ★
1 parent 3771171 commit 2b00af7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ RUN wget --progress=dot:giga "https://mirrors.edge.kernel.org/pub/software/scm/g
3333
WORKDIR /git-${GIT_VERSION}
3434

3535
# Compile with multi-core support directly passed to make.
36+
# RUNTIME_PREFIX=1 makes the binary 100% portable/relocatable so it can run from /usr/local
3637
# NO_TCLTK=1 disables the GUI tools.
3738
# NO_INSTALL_HARDLINKS=1 prevents Docker extraction bloat by using symlinks
38-
RUN make -j"$(nproc)" prefix=/git-build NO_TCLTK=1 NO_INSTALL_HARDLINKS=1 all && \
39-
make prefix=/git-build NO_TCLTK=1 NO_INSTALL_HARDLINKS=1 install
39+
RUN make -j"$(nproc)" prefix=/git-build RUNTIME_PREFIX=1 NO_TCLTK=1 NO_INSTALL_HARDLINKS=1 all && \
40+
make prefix=/git-build RUNTIME_PREFIX=1 NO_TCLTK=1 NO_INSTALL_HARDLINKS=1 install
4041

4142
# Strip debugging symbols to shrink the final size.
4243
# Because Git contains shell scripts in its libexec folder, I use 'file' to ensure

0 commit comments

Comments
 (0)