1 [PATCH] don't force library search path / rpath settings
3 openocd adds -L$exec_prefix/lib -Wl,rpath,$exec_prefix/lib to the compile
4 LDFLAGS if it isn't installed into /usr/local, which breaks cross compilation
5 as the compiler ends up using host libraries.
7 configure.in | 17 -----------------
8 1 file changed, 17 deletions(-)
10 Index: openocd-0.5.0/configure.in
11 ===================================================================
12 --- openocd-0.5.0.orig/configure.in
13 +++ openocd-0.5.0/configure.in
15 # Let make expand exec_prefix.
16 test x"$OCDxprefix" = xNONE && OCDxprefix="$OCDprefix"
18 -# what matters is the "exec-prefix"
19 -if test "$OCDxprefix" != "$ac_default_prefix"
21 - # We are installing in a non-standard place
22 - # Nonstandard --prefix and/or --exec-prefix
23 - # We have an override of some sort.
24 - # use build specific install library dir
26 - LDFLAGS="$LDFLAGS -L$OCDxprefix/lib"
27 - # RPATH becomes an issue on Linux only
28 - if test $host_os = linux-gnu || test $host_os = linux ; then
29 - LDFLAGS="$LDFLAGS -Wl,-rpath,$OCDxprefix/lib"
31 - # The "INCDIR" is also usable
32 - CFLAGS="$CFLAGS -I$includedir"
36 AS_HELP_STRING([--with-ftd2xx=<PATH>],[This option has been removed.]),