Skip to content
Moritz Warning edited this page Jul 19, 2015 · 20 revisions

Welcome to the zerotier-openwrt wiki!

How to compile ZeroTier with uClibc++

Install uClibc++

wget http://cxx.uclibc.org/src/uClibc++-0.2.4.tar.bz2
tar -xvjf uClibc++-0.2.4.tar.bz2
cd uClibc++-0.2.4
make

Now put this in the top section of Makefile in ZT source folder:

UC_INC=~/uClibc++-0.2.4/include
UC_LIB=~/uClibc++-0.2.4/src

LDFLAGS+= -L$(UC_LIB) -pthread
LDLIBS+= -L$(UC_LIB) -pthread -fno-builtin -nodefaultlibs -Wl,-Bstatic -luClibc++ -Wl,-Bdynamic  -lpthread -lm -lc -lsupc++ -lc -lgcc -lgcc_eh -lgcc_s  -lpthread -lm
CXXFLAGS+= -fno-builtin -nostdinc++ -I$(UC_INC) -DGCC_HASCLASSVISIBILITY -Wall -fPIE -fvisibility=hidden

Now call make.

Clone this wiki locally