fix go linking

This commit is contained in:
idk 2021-07-02 10:47:55 -04:00
parent f9d9aa0306
commit abee29719d
No known key found for this signature in database
GPG Key ID: D75C03B39B5E14E1
3 changed files with 14 additions and 5 deletions

View File

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

View File

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

View File

@ -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);
} }