Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/BuildUtil/UnixBuildSoftwares.cs')
-rw-r--r--src/BuildUtil/UnixBuildSoftwares.cs9
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)
{