syslinux: install helper programs to the host
[buildroot-gz.git] / package / openocd / openocd-0005-dont-force-ldflags.patch
blob1880e00504e1d14bdfed223ec121617c138d12e2
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.
6 ---
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
14 @@ -174,23 +174,6 @@
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"
20 -then
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"
30 - fi
31 - # The "INCDIR" is also usable
32 - CFLAGS="$CFLAGS -I$includedir"
33 -fi
35 AC_ARG_WITH(ftd2xx,
36 AS_HELP_STRING([--with-ftd2xx=<PATH>],[This option has been removed.]),