@@ -23,6 +23,6 @@ CGO_OFILES+=\
emitter.o\
CGO_LDFLAGS+=-lm -lpthread
-CGO_CFLAGS+=-I$(PWD) -DHAVE_CONFIG_H=1
+CGO_CFLAGS+=-I. -DHAVE_CONFIG_H=1
include $(GOROOT)/src/Make.pkg
@@ -3,6 +3,9 @@
#include <yaml.h>
+#define CGO_LDFLAGS "-lm -lpthread"
+#define CGO_CFLAGS "-I. -DHAVE_CONFIG=1"
+
#define DECLARE_YUNION_FUNC(name) \
__typeof__(((yaml_event_t *)0)->data.name) *\
event_##name(yaml_event_t *event);