portmap_6.0: Fix building on mipsel with gcc4.3
authorGraham Gower <graham.gower@gmail.com>
Mon, 10 Aug 2009 02:49:55 +0000 (04:49 +0200)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Mon, 10 Aug 2009 04:49:53 +0000 (06:49 +0200)
commit4fe22eed50ce7c45da30b0efc6106b90281ff5f5
tree2cdb26a07868492c136fe014c9e7ed35d083981f
parentf20d7d2a7e87b6c9fa8f368cce8813188c80f00c
portmap_6.0: Fix building on mipsel with gcc4.3

with gcc-4.4 and provides the following:

| tmp/cross/mipsel/lib/gcc/mipsel-angstrom-linux/4.4.1/../../../../mipsel-angstrom-linux/bin/ld: portmap.o: relocation R_MIPS_HI16 against `__gnu_local_gp' can not be used when making a shared object; recompile with -fPIC

The CFLAGS in portmap's Makefile contains -fpie, but is ignored. The
CFLAGS I've added below are constructed from portmap's Makefile. When
built with gcc-4.3.3 the resultant binary no longer segfaults.

Signed-Off-By: Holger Hans Peter Freyther <zecke@selfish.org>
recipes/portmap/portmap-6.0/no-pie.patch [deleted file]
recipes/portmap/portmap_6.0.bb