Skip to content

Commit

Permalink
Fixed compilation of logrotate on non-x86_64 architectures.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesage committed Jan 1, 2023
1 parent 438c14a commit 13b99f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/logrotate/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ apk --no-cache add \
build-base \
clang \

xx-apk --no-cache --no-scripts add \
g++ \

#
# Compile popt.
# The static library is not provided by Alpine repository, so we need to build
Expand All @@ -56,6 +59,7 @@ log "Configuring popt..."
--build=$(TARGETPLATFORM= xx-clang --print-target-triple) \
--host=$(xx-clang --print-target-triple) \
--prefix=/usr \
--disable-nls \
--disable-shared \
--enable-static \
)
Expand Down

0 comments on commit 13b99f5

Please sign in to comment.