diff options
author | Aditya Mandaleeka <adityamandaleeka@users.noreply.github.com> | 2016-01-12 20:30:27 -0800 |
---|---|---|
committer | Aditya Mandaleeka <adityamandaleeka@users.noreply.github.com> | 2016-01-12 20:30:27 -0800 |
commit | 9772319b6f8eeb77d4baf826d9d9067fb7d8a145 (patch) | |
tree | 806f8dd2f4b43f4e8a74d7c468f120dcf647ec88 /src | |
parent | c75c4adb7599a07cba7e2733f929b6c71bc7809b (diff) | |
parent | 2be03d9c309d09fa57ed32d0c64260d354d9d444 (diff) | |
download | coreclr-9772319b6f8eeb77d4baf826d9d9067fb7d8a145.tar.gz coreclr-9772319b6f8eeb77d4baf826d9d9067fb7d8a145.tar.bz2 coreclr-9772319b6f8eeb77d4baf826d9d9067fb7d8a145.zip |
Merge pull request #2629 from adityamandaleeka/mscorrcFpic
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. |