Dirk Behme wrote: > > I used recent SVN snapshot and configured with > > ./configure --enable-ft2232_ftd2xx --with-ftd2xx=<path_to>/libftd2xx0.4.15 > > While --with-ftd2xx path is used correctly for compilation, it seems to > me that ftd2xx path is missing for openocd linking and thus linking > fails due to libftd2xx.so not found. I had to manually add a > -L<path_to>/libftd2xx0.4.15. > > Is this known? Anything I missed?
Seems we need something like Index: trunk/src/Makefile.am =================================================================== --- trunk.orig/src/Makefile.am +++ trunk/src/Makefile.am @@ -31,10 +31,10 @@ MINGWLDADD = endif if FT2232_LIBFTDI -FTDI2232LIB = -lftdi -lusb +FTDI2232LIB = [EMAIL PROTECTED]@ -lftdi -lusb else if PRESTO_LIBFTDI -FTDI2232LIB = -lftdi -lusb +FTDI2232LIB = [EMAIL PROTECTED]@ -lftdi -lusb else FTDI2232LIB = endif @@ -54,10 +54,10 @@ if IS_WIN32 if FTD2XXDIR FTD2XXLDADD = @WITH_FTD2XX@/FTD2XX.lib else -FTD2XXLDADD = -lftd2xx +FTD2XXLDADD = [EMAIL PROTECTED]@ -lftd2xx endif else -FTD2XXLDADD = -lftd2xx +FTD2XXLDADD = [EMAIL PROTECTED]@ -lftd2xx endif if FT2232_FTD2XX But this *doesn't* work if --with-ftd2xx is empty, then you get -Lsearch ;) So we need something like if WITH_FTD2XX!=search [EMAIL PROTECTED]@ endif if FT2232_LIBFTDI -FTDI2232LIB = $(FTD2XXLIBPATH) -lftdi -lusb +FTDI2232LIB = -lftdi -lusb else if PRESTO_LIBFTDI -FTDI2232LIB = -lftdi -lusb +FTDI2232LIB = $(FTD2XXLIBPATH) -lftdi -lusb else FTDI2232LIB = endif Unfortunately, I'm not make/configure expert enough to implement this correctly :( Anybody likes to help? To make it perfect, we would like to use different path for FTDI include and FTDI library directories, as they might be different (e.g. using libftdi instead of ftd2xx). Regards Dirk _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
