Skip to content

Commit 53a27e0

Browse files
committed
cgo: split windows/unix support
Split cgo-flags support into Windows and Unix. Windows installations do not usually export a pkg-config installation. Fixes sbinet#32.
1 parent 17c9f53 commit 53a27e0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
// +build !windows
2+
13
package python
24

35
// #cgo pkg-config: python-2.7
46
// #include "go-python.h"
57
import "C"
6-
7-
// EOF

cgoflags_windows.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// +build windows
2+
3+
package python
4+
5+
// #cgo CFLAGS: -IC:/Python27/include
6+
// #cgo LDFLAGS: -LC:/Python27/libs -lpython27
7+
// #include "go-python.h"
8+
import "C"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy