Hardened versions of gcc default to building position-independent code, which breaks our i386 build. Our build process therefore detects such platforms and automatically adds "-fno-PIE -nopie" to the gcc command line. On x86_64, we choose to build position-independent code (in order to reduce the final binary size and, in particular, the number of relocations required for UEFI binaries). The workaround therefore breaks the build process for x86_64 binaries on such platforms. Fix by moving the workaround to the i386-specific portion of the Makefile. Reported-by: Jan Kundrát <jkt@kde.org> Debugged-by: Jan Kundrát <jkt@kde.org> Debugged-by: Marin Hannache <git@mareo.fr> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
 Michael Brown
						
						10 years ago
							Michael Brown
						
						10 years ago
					|  | ||
| 157 | 157 |  | 
| 158 | 158 |  | 
| 159 | 159 |  | 
| 160 |  | |
| 161 |  | |
| 162 |  | |
| 163 |  | |
| 164 |  | |
| 165 |  | |
| 166 |  | |
| 167 |  | |
| 168 |  | |
| 169 |  | |
| 170 |  | |
| 171 | 160 |  | 
| 172 | 161 |  | 
| 173 | 162 |  | 
|  | ||
| 69 | 69 |  | 
| 70 | 70 |  | 
| 71 | 71 |  | 
| 72 |  | |
| 73 |  | |
| 74 |  | |
| 75 |  | |
| 76 |  | |
| 77 |  | |
| 78 |  | |
| 79 |  | |
| 80 |  | |
| 81 |  | |
| 82 |  | |
| 72 | 83 |  | 
| 73 | 84 |  | 
| 74 | 85 |  |