From 568dc6ea3a3162137267e29916d8a1ce9f675748 Mon Sep 17 00:00:00 2001 From: John Ellson Date: Wed, 20 Nov 2013 18:08:19 -0500 Subject: [PATCH] more go bits --- tclpkg/gv/go/src/makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tclpkg/gv/go/src/makefile b/tclpkg/gv/go/src/makefile index 97d89b3dd..444d5745c 100644 --- a/tclpkg/gv/go/src/makefile +++ b/tclpkg/gv/go/src/makefile @@ -1,15 +1,17 @@ GO=$(GOROOT)/bin/go test: test.go prep - $(GO) build -x -work -ldflags='-extldflags=/usr/lib64/libgvc.so' test.go + $(GO) build -work -gccgoflags '-lgvc' -compiler gccgo test.go .PHONY: prep prep: mkdir -p gv sed -e 's/#include "gvc.h"/#include /' <../../gv.i >gv/gv.swigcxx + sed -e 's/#include /#include /' <../../gv_dummy_init.c >gv/gv_dummy_init.c + sed -e 's/#include "gvplugin.h"/#include /' <../../gv_builtins.c >gv/gv_builtins.c sed -e 's/#include "gvc.h"/#include /' \ -e 's/DEMAND_LOADING/1/' <../../gv.cpp >gv/gv.cpp echo "package gv" >gv/gv.go clean: - rm -rf test gv + rm -rf test gv /tmp/go-build* -- 2.40.0