Opened 8 years ago

Last modified 7 years ago

#5305 new Enhancement

Add support for -fPIE and -pie flags

Reported by: tipper Owned by:
Priority: Normal Milestone: None Set
Component: Transmission Version: 2.77
Severity: Normal Keywords: patch-needed
Cc:

Description

AFAIK, the Transmission configure script does not address the fact that -fPIE and -pie flags must be applied "surgically". Is it possible for these flags to be detected by the configure script and applied only where appropriate ?

http://linuxfromscratch.xtra-net.org/hlfs/view/unstable/glibc-2.4/chapter02/pie.html

"The fPIE flag can only be passed to executables, not libraries."

"...to add gcc -pie -fpie on program executables. fPIE must be added surgically..."

Change History (2)

comment:1 Changed 8 years ago by jordan

  • Keywords patch_needed added

If someone wants to cook up a patch for this, and if the patch is good, I'd be inclined to use it.

Some cursory Googling turned up https://github.com/cmouse/eics4/blob/master/configure.ac which looks like a good starting point to copy from.

comment:2 Changed 7 years ago by mike.dld

  • Keywords patch-needed added; patch_needed removed
Note: See TracTickets for help on using tickets.