Browse Source

Also add the languages to the linker flags in the api.go file

pull/1669/head
idk 3 years ago
parent
commit
5d01ee9581
No known key found for this signature in database
GPG Key ID: D75C03B39B5E14E1
  1. 4
      libi2pd_wrapper/api.go
  2. 2
      libi2pd_wrapper/capi.h

4
libi2pd_wrapper/api.go

@ -10,8 +10,6 @@ package api @@ -10,8 +10,6 @@ package api
/*
#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++
#cgo LDFLAGS: -L${SRCDIR}/../ -l:libi2pd.a -l:libi2pdlang.a -latomic -lcrypto -lssl -lz -lboost_system -lboost_date_time -lboost_filesystem -lboost_program_options -lpthread -lstdc++
*/
import "C"
// -D, -U, -I, and

2
libi2pd_wrapper/capi.h

@ -17,7 +17,7 @@ extern "C" { @@ -17,7 +17,7 @@ extern "C" {
void C_InitI2P (int argc, char argv[], const char * appName);
//void C_InitI2P (int argc, char** argv, const char * appName);
void C_TerminateI2P ();
void C_StartI2P (); //std::ostream *logStream = nullptr);
void C_StartI2P ();
// write system log to logStream, if not specified to <appName>.log in application's folder
void C_StopI2P ();
void C_RunPeerTest (); // should be called after UPnP

Loading…
Cancel
Save