Content-Length: 274099 | pFad | http://github.com/sbinet/go-python/commit/53a27e004aa6fc4041327425b3b751a5cd513f0e

B7 cgo: split windows/unix support · sbinet/go-python@53a27e0 · GitHub
Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

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 #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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/sbinet/go-python/commit/53a27e004aa6fc4041327425b3b751a5cd513f0e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy