diff options
Diffstat (limited to 'src/BuildUtil')
-rw-r--r-- | src/BuildUtil/UnixBuildSoftwares.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/BuildUtil/UnixBuildSoftwares.cs b/src/BuildUtil/UnixBuildSoftwares.cs index c4d5dde6..220740c0 100644 --- a/src/BuildUtil/UnixBuildSoftwares.cs +++ b/src/BuildUtil/UnixBuildSoftwares.cs @@ -957,6 +957,15 @@ namespace BuildUtil {
options.Add("-O2");
}
+
+ if (this.Os == OSList.Linux)
+ {
+ if (this.Cpu == CpuList.x64 || this.Cpu == CpuList.x86 || this.Cpu == CpuList.intel)
+ {
+ options.Add("-no-pie");
+ }
+ }
+
options.Add("-fsigned-char");
if (this.NoPThreadOption == false)
{
|