openswan: Restore -fPIE to USERCOMPILE flags
authorMarkos Chandras <markos.chandras@imgtec.com>
Tue, 25 Jun 2013 15:14:36 +0000 (16:14 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 27 Jun 2013 18:51:48 +0000 (20:51 +0200)
commit6e8efc0ed409d7211a81d5370e088aa438990607
tree6fe51ea450fd2578bb529318b97bcb0be104fed1
parent79c55aadd54d098696644d77f9e60cd200e08753
openswan: Restore -fPIE to USERCOMPILE flags

The default USERCOMPILE variable uses -fPIE so we bring this back.
This also fixes linking problems for MIPS when non-PIC objects
are used to form a PIC one.

Fixes the following linking problem on MIPS:
connections.o: relocation R_MIPS_HI16 against `__gnu_local_gp'
can not be used when making a shared object; recompile with -fPIC

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/openswan/openswan.mk