go: build .a instead of .so
This commit is contained in:
parent
b76fad9512
commit
8ce03cbed6
@ -1,5 +1,5 @@
|
|||||||
mode:regexp
|
mode:regexp
|
||||||
^build-qbolt-
|
^build-qbolt-
|
||||||
^dummy-data/dummy-data$
|
^dummy-data/dummy-data$
|
||||||
^qbolt\.o$
|
^qbolt\.a$
|
||||||
\.pro\.user$
|
\.pro\.user$
|
||||||
|
10
Makefile
10
Makefile
@ -1,11 +1,11 @@
|
|||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
||||||
all: qbolt.o
|
all: qbolt.a
|
||||||
|
|
||||||
clean:
|
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
|
if [ -f qbolt ] ; then rm qbolt ; fi
|
||||||
|
|
||||||
qbolt.o: *.go
|
qbolt.a: *.go
|
||||||
go build -ldflags='-s -w' -buildmode=c-shared -o qbolt.o
|
go build -ldflags='-s -w' -buildmode=c-archive -o qbolt.a
|
||||||
|
@ -17,7 +17,8 @@ TEMPLATE = app
|
|||||||
# deprecated API in order to know how to port your code away from it.
|
# deprecated API in order to know how to port your code away from it.
|
||||||
DEFINES += QT_DEPRECATED_WARNINGS
|
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.
|
# You can also make your code fail to compile if you use deprecated APIs.
|
||||||
# In order to do so, uncomment the following line.
|
# In order to do so, uncomment the following line.
|
||||||
|
Loading…
Reference in New Issue
Block a user