diff --git a/.hgignore b/.hgignore index ee54da0..2cee648 100644 --- a/.hgignore +++ b/.hgignore @@ -1,5 +1,5 @@ mode:regexp ^build-qbolt- ^dummy-data/dummy-data$ -^qbolt\.o$ +^qbolt\.a$ \.pro\.user$ diff --git a/Makefile b/Makefile index d799a7f..11bd133 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ .PHONY: all clean -all: qbolt.o +all: qbolt.a clean: - if [ -f qbolt.o ] ; then rm qbolt.o ; fi + if [ -f qbolt.a ] ; then rm qbolt.a ; fi if [ -f qbolt ] ; then rm qbolt ; fi - -qbolt.o: *.go - go build -ldflags='-s -w' -buildmode=c-shared -o qbolt.o + +qbolt.a: *.go + go build -ldflags='-s -w' -buildmode=c-archive -o qbolt.a diff --git a/qbolt/qbolt.pro b/qbolt/qbolt.pro index 6d6b815..ba15683 100644 --- a/qbolt/qbolt.pro +++ b/qbolt/qbolt.pro @@ -17,7 +17,8 @@ TEMPLATE = app # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS -QMAKE_LFLAGS += ../qbolt.o +#QMAKE_LFLAGS += ../qbolt.so +QMAKE_LIBS += ../qbolt.a # You can also make your code fail to compile if you use deprecated APIs. # In order to do so, uncomment the following line.