go: build .a instead of .so

This commit is contained in:
mappu 2017-05-20 14:57:19 +12:00
parent b76fad9512
commit 8ce03cbed6
3 changed files with 8 additions and 7 deletions

View File

@ -1,5 +1,5 @@
mode:regexp
^build-qbolt-
^dummy-data/dummy-data$
^qbolt\.o$
^qbolt\.a$
\.pro\.user$

View File

@ -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

View File

@ -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.