microo8 / plgo

easily create postgresql extensions in golang; moved to gitlab.com/microo8/plgo
292 stars 22 forks source link

psql server 11 #34

Closed dualfade closed 4 years ago

dualfade commented 4 years ago

Changed to plgo.go --

/*

cgo CFLAGS: -I"/usr/include/postgresql/11/server" -fpic

cgo LDFLAGS: -shared

//{windowsCFLAGS}

So I could build go module on deb latest.

Just an fyi --

microo8 commented 4 years ago

plgo command will replace the /usr/include/postgresql/server string, with the output from pg_config --includedir-server

I don't know why this cgo CFLAGS is a problem to compile ...