mirror of
https://github.com/codecat/go-enet.git
synced 2025-12-08 05:59:47 +00:00
Use pkg-config for non-Windows builds
This commit is contained in:
parent
3166525404
commit
ec692079e3
1 changed files with 2 additions and 2 deletions
4
enetc.go
4
enetc.go
|
|
@ -1,8 +1,8 @@
|
|||
package enet
|
||||
|
||||
// #cgo LDFLAGS: -lenet
|
||||
// #cgo !windows pkg-config: libenet
|
||||
// #cgo windows CFLAGS: -Ienet/include/
|
||||
// #cgo windows LDFLAGS: -Lenet/ -lWs2_32 -lWinmm
|
||||
// #cgo windows LDFLAGS: -Lenet/ -lenet -lWs2_32 -lWinmm
|
||||
// #include <enet/enet.h>
|
||||
import "C"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue