dmalloc: pass -fPIC when compiling
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 29 Jul 2010 08:18:19 +0000 (10:18 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 29 Jul 2010 20:18:10 +0000 (22:18 +0200)
commitc19c6451413ed873eccf321e7f79cea1f78aa95d
tree21718e88010d1cf3e3d5509a5350707e156c15bf
parent0eae20b7be89bc76225a15c7238ff0c809259ac3
dmalloc: pass -fPIC when compiling

This is needed to avoid:

/home/test/mips-4.4/bin/mips-linux-gnu-ld --sysroot=/home/test/outputs/test-35/staging -shared --whole-archive -soname libdmallocxx.so -o libdmallocxx.so.t libdmallocxx.a
/home/test/mips-4.4/bin/mips-linux-gnu-ld: libdmalloc.a(arg_check.o): relocation R_MIPS_HI16 against `_dmalloc_flags' can not be used when making a shared object; recompile with -fPIC

It is fixed through a patch to Makefile.in instead of passing a CFLAGS
variable to ./configure environment in order to avoid cluttering the
configuration cache with incorrect values.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/dmalloc/dmalloc-5.4.3-add-fpic.patch [new file with mode: 0644]