Download NetFusion Software uCLinux User Guide
Transcript
NetFusion Software uCLinux User Guide
V1.0 - August 2014
20 Building Multi-Threaded Applications
The version of the uClibc included with the CodeSourcery tool chain does not provide support for
POSIX threads. To address this limitation, we have enabled POSIX threads in uClibc and included
the updated library built for Thumb in our uClinux distribution.
In order to build a multi-threaded application and link it with the appropriate uClibc binary, do the
following:
After activation of the cross-build environment (source ACTIVATE.sh), run the following command
(linux-dp.c being the application in the below example):
arm-uclinuxeabi-gcc -o linux-dp linux-dp.c -I \
${INSTALL_ROOT}/A2F/root/usr/include -mcpu=cortex-m3 -mthumb -L \
${INSTALL_ROOT}/A2F/root/usr/lib -pthread
102