summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAditya Mandaleeka <adityam@microsoft.com>2016-01-12 15:35:40 -0800
committerAditya Mandaleeka <adityam@microsoft.com>2016-01-12 15:35:40 -0800
commit2be03d9c309d09fa57ed32d0c64260d354d9d444 (patch)
treef8572b645952dda2c37a291809b14c9310b3c0bc /src
parentdb743bc4103e78484bd0dac54a1b887da63a7059 (diff)
downloadcoreclr-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.txt4
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.