mirror of
https://github.com/containers/podman.git
synced 2025-09-09 21:52:21 +08:00
Use osusergo build tag for static build
We now use the `osusergo` build tag to not use the glibc functions which occur in the warnings but them from golang the os/user package. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
@ -44,7 +44,7 @@ let
|
||||
export CFLAGS='-static'
|
||||
export LDFLAGS='-s -w -static-libgcc -static'
|
||||
export EXTRA_LDFLAGS='-s -w -linkmode external -extldflags "-static -lm"'
|
||||
export BUILDTAGS='static netgo exclude_graphdriver_btrfs exclude_graphdriver_devicemapper seccomp apparmor selinux'
|
||||
export BUILDTAGS='static netgo osusergo exclude_graphdriver_btrfs exclude_graphdriver_devicemapper seccomp apparmor selinux'
|
||||
'';
|
||||
buildPhase = ''
|
||||
patchShebangs .
|
||||
|
Reference in New Issue
Block a user