Skip to content

Commit 6006acc

Browse files
committed
Disable CGO for Centos 5 to assist git-lfs#952
1 parent 0640430 commit 6006acc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rpm/SPECS/git-lfs.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ mkdir -p src/github.com/github
2828
ln -s $(pwd) src/github.com/github/%{name}
2929

3030
%build
31+
%if 0%{?rhel} == 5
32+
export CGO_ENABLED=0
33+
%endif
3134
%if %{_arch} == i386
3235
GOARCH=386 GOPATH=`pwd` ./script/bootstrap
3336
%else

0 commit comments

Comments
 (0)