Always static build
This commit is contained in:
parent
187cc0de75
commit
352e5d8968
|
@ -1,10 +0,0 @@
|
||||||
//go:build darwin
|
|
||||||
// +build darwin
|
|
||||||
|
|
||||||
package client
|
|
||||||
|
|
||||||
/*
|
|
||||||
#cgo darwin CFLAGS: -I/usr/local/include
|
|
||||||
#cgo darwin LDFLAGS: -L/usr/local/lib -L/usr/local/opt/openssl/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltddb -ltdsqlite -ltdnet -ltdutils -lstdc++ -lssl -lcrypto -ldl -lz -lm
|
|
||||||
*/
|
|
||||||
import "C"
|
|
|
@ -1,13 +0,0 @@
|
||||||
//go:build libtdjson && (linux || darwin)
|
|
||||||
// +build libtdjson
|
|
||||||
// +build linux darwin
|
|
||||||
|
|
||||||
package client
|
|
||||||
|
|
||||||
/*
|
|
||||||
#cgo linux CFLAGS: -I/usr/local/include
|
|
||||||
#cgo linux LDFLAGS: -L/usr/local/lib -ltdjson -lstdc++ -lssl -lcrypto -ldl -lz -lm
|
|
||||||
#cgo darwin CFLAGS: -I/usr/local/include
|
|
||||||
#cgo darwin LDFLAGS: -L/usr/local/lib -ltdjson -lstdc++ -lssl -lcrypto -ldl -lz -lm
|
|
||||||
*/
|
|
||||||
import "C"
|
|
|
@ -1,13 +0,0 @@
|
||||||
//go:build !libtdjson && (linux || darwin)
|
|
||||||
// +build !libtdjson
|
|
||||||
// +build linux darwin
|
|
||||||
|
|
||||||
package client
|
|
||||||
|
|
||||||
/*
|
|
||||||
#cgo linux CFLAGS: -I/usr/local/include
|
|
||||||
#cgo linux LDFLAGS: -L/usr/local/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltdapi -ltddb -ltdsqlite -ltdnet -ltdutils -lstdc++ -lssl -lcrypto -ldl -lz -lm
|
|
||||||
#cgo darwin CFLAGS: -I/usr/local/include
|
|
||||||
#cgo darwin LDFLAGS: -L/usr/local/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltdapi -ltddb -ltdsqlite -ltdnet -ltdutils -lstdc++ -lssl -lcrypto -ldl -lz -lm
|
|
||||||
*/
|
|
||||||
import "C"
|
|
|
@ -1,9 +1,14 @@
|
||||||
package client
|
package client
|
||||||
|
|
||||||
/*
|
//#cgo linux CFLAGS: -I/usr/local/include
|
||||||
#include <stdlib.h>
|
//#cgo darwin CFLAGS: -I/usr/local/include
|
||||||
#include <td/telegram/td_json_client.h>
|
//#cgo windows CFLAGS: -IE:/src/tdlib -IE:/src/tdlib/build
|
||||||
*/
|
//#cgo linux LDFLAGS: -L/usr/local/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdapi -ltdactor -ltddb -ltdsqlite -ltdnet -ltdutils -lstdc++ -lssl -lcrypto -ldl -lz -lm
|
||||||
|
//#cgo darwin LDFLAGS: -L/usr/local/lib -L/usr/local/opt/openssl/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdapi -ltdactor -ltddb -ltdsqlite -ltdnet -ltdutils -lstdc++ -lssl -lcrypto -ldl -lz -lm
|
||||||
|
//#cgo windows LDFLAGS: -LE:/src/tdlib/build/Release -ltdjson
|
||||||
|
//#include <stdlib.h>
|
||||||
|
//#include <td/telegram/td_json_client.h>
|
||||||
|
//#include <td/telegram/td_log.h>
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Reference in a new issue