Skip to content

Commit

Permalink
Set CFLAGS for Packetbeat arm64 cross-compile (#7809) (#8409)
Browse files Browse the repository at this point in the history
Cross-building Packetbeat was failing because the appropriate CFLAGS were not being set.

(cherry picked from commit 9796ec9)
  • Loading branch information
andrewkroh authored Sep 26, 2018
1 parent fa956ec commit e193f6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packetbeat/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ var libpcapLDFLAGS = map[string]string{
var libpcapCFLAGS = map[string]string{
"linux/386": linuxPcapCFLAGS,
"linux/amd64": linuxPcapCFLAGS,
"linux/arm64": linuxPcapCFLAGS,
"linux/armv5": linuxPcapCFLAGS,
"linux/armv6": linuxPcapCFLAGS,
"linux/armv7": linuxPcapCFLAGS,
Expand All @@ -174,8 +175,8 @@ var libpcapCFLAGS = map[string]string{
}

var crossBuildDeps = map[string]func() error{
"linux/amd64": buildLibpcapLinuxAMD64,
"linux/386": buildLibpcapLinux386,
"linux/amd64": buildLibpcapLinuxAMD64,
"linux/arm64": buildLibpcapLinuxARM64,
"linux/armv5": buildLibpcapLinuxARMv5,
"linux/armv6": buildLibpcapLinuxARMv6,
Expand Down

0 comments on commit e193f6d

Please sign in to comment.