From: Vivien G. <vg...@ne...> - 2012-06-25 16:17:26
|
On 25/06/2012 15:13, Bill Traynor wrote: > On Mon, Jun 25, 2012 at 3:54 AM, Vivien Giraud<vg...@ne...> wrote: >> Hi, >> How do you do to compile OpenOCD with static libs ? > Which libs? What host OS? > > For ft2232-lib you'd add something like this to your ./configure: > > --with-ft2232-lib=static When I try with your option I have an error, so I use : LDFLAGS='-lftdi -lusb' ./configure --with-ft2232-lib=static And then I have : libtool: link: gcc -std=gnu99 -g -O2 -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -o openocd main.o ./.libs/libopenocd.a -lftdi -lusb ../jimtcl/libjim.a -ldl ./.libs/libopenocd.a(interfaces.o):(.data+0x0): undefined reference to `ftdi_interface' collect2: ld returned 1 exit status So I try : LDFLAGS='-lftdi -lusb' ./configure --with-ft2232-lib=static --enable-ft2232_libftdi It's work but it's not static :( do you have any idea how to ? Thanks |