diff options
author | Aditya Mandaleeka <adityam@microsoft.com> | 2016-01-12 15:35:40 -0800 |
---|---|---|
committer | Aditya Mandaleeka <adityam@microsoft.com> | 2016-01-12 15:35:40 -0800 |
commit | 2be03d9c309d09fa57ed32d0c64260d354d9d444 (patch) | |
tree | f8572b645952dda2c37a291809b14c9310b3c0bc /src | |
parent | db743bc4103e78484bd0dac54a1b887da63a7059 (diff) | |
download | coreclr-2be03d9c309d09fa57ed32d0c64260d354d9d444.tar.gz coreclr-2be03d9c309d09fa57ed32d0c64260d354d9d444.tar.bz2 coreclr-2be03d9c309d09fa57ed32d0c64260d354d9d444.zip |
Add fPIC option when compiling mscorrc.
Diffstat (limited to 'src')
-rw-r--r-- | src/dlls/mscorrc/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dlls/mscorrc/CMakeLists.txt b/src/dlls/mscorrc/CMakeLists.txt index f3288c97bc..a55269b43f 100644 --- a/src/dlls/mscorrc/CMakeLists.txt +++ b/src/dlls/mscorrc/CMakeLists.txt @@ -6,6 +6,10 @@ if(WIN32) string(REPLACE "/LTCG" "" CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO ${CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO}) endif(WIN32) +if(CLR_CMAKE_PLATFORM_UNIX) + add_compile_options(-fPIC) +endif(CLR_CMAKE_PLATFORM_UNIX) + add_subdirectory(full) # Only add the small version of the resources if the platform is Windows. |