Skip to content

Commit

Permalink
fix: use incompatible build types for darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhitt committed Feb 1, 2024
1 parent 2c699fb commit 82afeff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frida/frida.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ package frida

/*
#cgo LDFLAGS: -lfrida-core -lm -ldl
#cgo CFLAGS: -I/usr/local/include/ -w -Wno-error=incompatible-function-pointer-types
#cgo darwin LDFLAGS: -lbsm -framework Foundation -framework AppKit -lresolv -lpthread
#cgo CFLAGS: -I/usr/local/include/ -w
#cgo darwin LDFLAGS: -lbsm -framework Foundation -framework AppKit -lresolv -lpthread -Wno-error=incompatible-function-pointer-types
#cgo android LDFLAGS: -llog
#cgo android CFLAGS: -DANDROID
#cgo android CFLAGS: -DANDROID -Wno-error=incompatible-function-pointer-types
#cgo linux,!android LDFLAGS: -lrt -lresolv -lpthread
#cgo linux CFLAGS: -pthread
#include <frida-core.h>
Expand Down

0 comments on commit 82afeff

Please sign in to comment.