mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
fix go linking
This commit is contained in:
parent
f9d9aa0306
commit
abee29719d
2
Makefile
2
Makefile
@ -123,7 +123,7 @@ $(ARLIB): $(LIB_OBJS)
|
|||||||
$(ARLIB_CLIENT): $(LIB_CLIENT_OBJS)
|
$(ARLIB_CLIENT): $(LIB_CLIENT_OBJS)
|
||||||
$(AR) -r $@ $^
|
$(AR) -r $@ $^
|
||||||
|
|
||||||
$(ARLIB_WRAP): $(LIB_OBJS)
|
$(ARLIB_WRAP): $(WRAP_LIB_OBJS)
|
||||||
$(AR) -r $@ $^
|
$(AR) -r $@ $^
|
||||||
|
|
||||||
$(ARLIB_LANG): $(LANG_OBJS)
|
$(ARLIB_LANG): $(LANG_OBJS)
|
||||||
|
@ -1,7 +1,17 @@
|
|||||||
package api
|
package api
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo CXXFLAGS: -I${SRCDIR}/../i18n -I${SRCDIR}/../libi2pd_client -g -Wall -Wextra -Wno-unused-parameter -pedantic -Wno-psabi -fPIC -D__AES__ -maes
|
* Copyright (c) 2013-2020, The PurpleI2P Project
|
||||||
#cgo LDFLAGS: -latomic -lcrypto -lssl -lz -lboost_system -lboost_date_time -lboost_filesystem -lboost_program_options -lpthread -lstdc++
|
*
|
||||||
|
* This file is part of Purple i2pd project and licensed under BSD3
|
||||||
|
*
|
||||||
|
* See full license text in LICENSE file at top of project tree
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
#cgo CXXFLAGS: -I${SRCDIR}/../i18n -I${SRCDIR}/../libi2pd_client -I${SRCDIR}/../libi2pd -g -Wall -Wextra -Wno-unused-parameter -pedantic -Wno-psabi -fPIC -D__AES__ -maes
|
||||||
|
#cgo LDFLAGS: -L${SRCDIR}/../ -l:libi2pd.a -latomic -lcrypto -lssl -lz -lboost_system -lboost_date_time -lboost_filesystem -lboost_program_options -lpthread -lstdc++
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
|
// -D, -U, -I, and
|
@ -85,10 +85,9 @@ void C_TerminateI2P ()
|
|||||||
return i2p::api::TerminateI2P();
|
return i2p::api::TerminateI2P();
|
||||||
}
|
}
|
||||||
|
|
||||||
void C_StartI2P ()//std::ostream *logStream)
|
void C_StartI2P ()
|
||||||
{
|
{
|
||||||
std::shared_ptr<std::ostream> logStream;
|
std::shared_ptr<std::ostream> logStream;
|
||||||
//cppLogStream(&out);
|
|
||||||
return i2p::api::StartI2P(logStream);
|
return i2p::api::StartI2P(logStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user