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
NSEcho authored Feb 1, 2024
2 parents 2c699fb + 9b3728f commit 1757296
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frida/frida.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ package frida

/*
#cgo LDFLAGS: -lfrida-core -lm -ldl
#cgo CFLAGS: -I/usr/local/include/ -w -Wno-error=incompatible-function-pointer-types
#cgo CFLAGS: -I/usr/local/include/ -w
#cgo darwin LDFLAGS: -lbsm -framework Foundation -framework AppKit -lresolv -lpthread
#cgo darwin CFLAGS: -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 1757296

Please sign in to comment.