From c2aa3bc0e3cd126795863c73b6c6170f6c707370 Mon Sep 17 00:00:00 2001 From: EC2 Default User Date: Sun, 1 Jul 2018 16:39:16 +0000 Subject: ldflags --hash-style=both --- Dockerfile_i386 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile_i386 b/Dockerfile_i386 index b5c6dd1..101135a 100644 --- a/Dockerfile_i386 +++ b/Dockerfile_i386 @@ -8,4 +8,4 @@ RUN linux32 sh -c 'yum install -y gcc git pam-devel \ && go get github.com/nmcclain/ldap' COPY src /root/go/src RUN linux32 sh -c 'cd /root/go/src \ - && go build -a pamldapd.go' + && env GOOS=linux GOARCH=386 go build -a -ldflags "-extldflags \"-Wl,--hash-style=both\"" -x pamldapd.go' -- cgit v1.2.3