Skip to content

Commit

Permalink
fix cgo flags
Browse files Browse the repository at this point in the history
  • Loading branch information
itomsawyer committed Dec 2, 2023
1 parent 6d0268c commit 6ec85c6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crypto/md5/md5.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
package md5

// #include "../../shim.h"
// #cgo linux CFLAGS: -Wno-deprecated-declarations -I/opt/tongsuo/include
// #cgo linux LDFLAGS: -L/opt/tongsuo/lib -lssl -lcrypto
// #cgo darwin CFLAGS: -I/opt/tongsuo/include -Wno-deprecated-declarations
// #cgo darwin LDFLAGS: -L/opt/tongsuo/lib -lssl -lcrypto
// #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN
// #cgo windows pkg-config: libssl libcrypto
import "C"

import (
Expand Down
6 changes: 6 additions & 0 deletions crypto/sha1/sha1.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
package sha1

// #include "../../shim.h"
// #cgo linux CFLAGS: -Wno-deprecated-declarations -I/opt/tongsuo/include
// #cgo linux LDFLAGS: -L/opt/tongsuo/lib -lssl -lcrypto
// #cgo darwin CFLAGS: -I/opt/tongsuo/include -Wno-deprecated-declarations
// #cgo darwin LDFLAGS: -L/opt/tongsuo/lib -lssl -lcrypto
// #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN
// #cgo windows pkg-config: libssl libcrypto
import "C"

import (
Expand Down
6 changes: 6 additions & 0 deletions crypto/sha256/sha256.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
package sha256

// #include "../../shim.h"
// #cgo linux CFLAGS: -Wno-deprecated-declarations -I/opt/tongsuo/include
// #cgo linux LDFLAGS: -L/opt/tongsuo/lib -lssl -lcrypto
// #cgo darwin CFLAGS: -I/opt/tongsuo/include -Wno-deprecated-declarations
// #cgo darwin LDFLAGS: -L/opt/tongsuo/lib -lssl -lcrypto
// #cgo windows CFLAGS: -DWIN32_LEAN_AND_MEAN
// #cgo windows pkg-config: libssl libcrypto
import "C"

import (
Expand Down

0 comments on commit 6ec85c6

Please sign in to comment.