-
Notifications
You must be signed in to change notification settings - Fork 1
/
C.go.in
28 lines (22 loc) · 861 Bytes
/
C.go.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package main
// ------------------------------------------------------------------------
// (!) GENERATED FROM C.go.in
// ------------------------------------------------------------------------
// Define CFLAGS, LDFLAGS using options from pg_config.
/*
#cgo CFLAGS: -I${PG_CONFIG_INCLUDEDIR_SERVER} -I/usr/local/include -Wall -Werror
#cgo LDFLAGS: -Wl,-unresolved-symbols=ignore-all -fPIC
//
// Regarding /usr/local/include: This is required on FreeBSD for
// libintl.h (gettext-runtime) and it does not hurt on other systems.
//
// Regarding unresolved-symbols=ignore-all: Shit is weird:
//
// | /tmp/go-build361859332/b001/_x003.o: In function `r53db_hi':
// | ./pg.c:9: undefined reference to `palloc'
// | collect2: error: ld returned 1 exit status
//
// => https://stackoverflow.com/questions/56114539/undefined-reference-to-palloc
//
*/
import "C"