libiscsi: only build the test tool and ld-iscsi if we have shared libs
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Tue, 4 Nov 2014 12:24:56 +0000 (12:24 +0000)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 8 Nov 2014 21:15:07 +0000 (22:15 +0100)
commit79d390aa0a1f5001b54d98e6b788f32f1243c0c1
treee48a691b5ae8d2f79b51efc873b0c45917726bd3
parenta1f4227d96ae660606fd678856f8917b1bc221e0
libiscsi: only build the test tool and ld-iscsi if we have shared libs

Backporting an upstream patch to fix a failure when doing a static
build:

/br/output/host/usr/bin/mipsel-ctng-linux-uclibc-gcc -shared -o
ld_iscsi.so ld_iscsi.o -ldl
/br/output/host/opt/ext-toolchain/bin/../lib/gcc/mipsel-ctng-linux-uclibc/4.8.2/../../../../mipsel-ctng-linux-uclibc/bin/ld:
ld_iscsi.o: relocation R_MIPS_HI16 against `__gnu_local_gp' can not be
used when making a shared object; recompile with -fPIC
ld_iscsi.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status

Upstream commit:
  https://github.com/sahlberg/libiscsi/commit/3d6c2be3428d88682cecfa2a4ad172aaacffb318

Fixes:
  http://autobuild.buildroot.net/results/7a9/7a9caf1f4080c2c4b04ee3b13c1240f475a22ea7/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libiscsi/0006-configure-only-build-the-test-tool-and-ld-iscsi-iff-.patch [new file with mode: 0644]