Support PIE on Solaris
[gcc.git] / gcc / gcc.c
index ef132d6fecef34cd31b4c9ab0d4e7f9c749e7776..55a725583b87406e79c4f470d80fc0502e122d00 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -909,7 +909,9 @@ proper position among the other output files.  */
 
 #ifndef LINK_PIE_SPEC
 #ifdef HAVE_LD_PIE
+#ifndef LD_PIE_SPEC
 #define LD_PIE_SPEC "-pie"
+#endif
 #else
 #define LD_PIE_SPEC ""
 #endif