diff options
author | Sergiy Kuryata <sergeyk@microsoft.com> | 2016-01-14 21:29:15 -0800 |
---|---|---|
committer | Sergiy Kuryata <sergeyk@microsoft.com> | 2016-01-14 21:29:15 -0800 |
commit | 79d35524aabc24fb42120ef62899198c06255020 (patch) | |
tree | 1317d0c2538cfa3fa8c582edb8904a10d21c6fcd /src/coreclr/hosts | |
parent | acdee68f193eca1cb0f9f5c9244f412707df7b90 (diff) | |
parent | 891b2aa2b1c65ff157a840c3462fa6d007f2dac9 (diff) | |
download | coreclr-79d35524aabc24fb42120ef62899198c06255020.tar.gz coreclr-79d35524aabc24fb42120ef62899198c06255020.tar.bz2 coreclr-79d35524aabc24fb42120ef62899198c06255020.zip |
Merge pull request #2661 from sergiy-k/pie
Enable the fPIE compiler option for executables in the coreclr repo on Unix platforms
Diffstat (limited to 'src/coreclr/hosts')
-rw-r--r-- | src/coreclr/hosts/osxbundlerun/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/coreclr/hosts/unixcoreconsole/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/coreclr/hosts/unixcorerun/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/coreclr/hosts/unixcoreruncommon/CMakeLists.txt | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/src/coreclr/hosts/osxbundlerun/CMakeLists.txt b/src/coreclr/hosts/osxbundlerun/CMakeLists.txt index 31ed5704a1..9c8fd7a275 100644 --- a/src/coreclr/hosts/osxbundlerun/CMakeLists.txt +++ b/src/coreclr/hosts/osxbundlerun/CMakeLists.txt @@ -2,6 +2,8 @@ project(osxbundlerun) include_directories(../unixcoreruncommon) +add_compile_options(-fPIE) + set(CORERUN_SOURCES ../unixcoreruncommon/coreruncommon.cpp osxbundlerun.cpp diff --git a/src/coreclr/hosts/unixcoreconsole/CMakeLists.txt b/src/coreclr/hosts/unixcoreconsole/CMakeLists.txt index 905ed261a1..ec5f0e7f6b 100644 --- a/src/coreclr/hosts/unixcoreconsole/CMakeLists.txt +++ b/src/coreclr/hosts/unixcoreconsole/CMakeLists.txt @@ -2,6 +2,8 @@ project(unixcoreconsole) include_directories(../unixcoreruncommon) +add_compile_options(-fPIE) + set(CORECONSOLE_SOURCES coreconsole.cpp ) diff --git a/src/coreclr/hosts/unixcorerun/CMakeLists.txt b/src/coreclr/hosts/unixcorerun/CMakeLists.txt index d17ca0ba7a..48da17c9e0 100644 --- a/src/coreclr/hosts/unixcorerun/CMakeLists.txt +++ b/src/coreclr/hosts/unixcorerun/CMakeLists.txt @@ -2,6 +2,8 @@ project(unixcorerun) include_directories(../unixcoreruncommon) +add_compile_options(-fPIE) + set(CORERUN_SOURCES corerun.cpp ) diff --git a/src/coreclr/hosts/unixcoreruncommon/CMakeLists.txt b/src/coreclr/hosts/unixcoreruncommon/CMakeLists.txt index 92c5cfd8b2..f71e979cc6 100644 --- a/src/coreclr/hosts/unixcoreruncommon/CMakeLists.txt +++ b/src/coreclr/hosts/unixcoreruncommon/CMakeLists.txt @@ -1,5 +1,7 @@ project(unixcoreruncommon) +add_compile_options(-fPIC) + add_library(unixcoreruncommon STATIC coreruncommon.cpp |