From b5eb5495027dfa9f2cd270eeb556700bbe1eaca2 Mon Sep 17 00:00:00 2001 From: irieda Date: Mon, 2 Dec 2013 14:20:29 +0900 Subject: [PATCH 1/2] Update Makefile --- Makefile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 3a23a18..7c7d62e 100644 --- a/Makefile +++ b/Makefile @@ -3,14 +3,13 @@ all: build -build: libunqlite.a +build: src/unqlite.c go build -install: libunqlite.a +install: src/unqlite.c go install clean: - rm -f libunqlite.a rm -rf src/* test: @@ -19,7 +18,3 @@ test: src/unqlite.c: git submodule init git submodule update - -libunqlite.a: src/unqlite.c src/unqlite.h - gcc -c src/unqlite.c -I./src -DUNQLITE_ENABLE_THREADS=1 - ar rv libunqlite.a unqlite.o From eaeec8ef44a9014561b4afdf699c1400f448562d Mon Sep 17 00:00:00 2001 From: irieda Date: Mon, 2 Dec 2013 14:20:57 +0900 Subject: [PATCH 2/2] Update unqlite.go --- unqlite.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unqlite.go b/unqlite.go index b6bc21f..b9fa47d 100644 --- a/unqlite.go +++ b/unqlite.go @@ -1,8 +1,8 @@ package unqlitego /* -#cgo LDFLAGS: -L./ -lunqlite -#include "./src/unqlite.h" +#cgo CFLAGS: -DUNQLITE_ENABLE_THREADS=1 -Wno-unused-but-set-variable +#include "./src/unqlite.c" #include */ import "C"