8000 Merge pull request #7079 from Faless/fix/static_linker_flags · libgit2/libgit2@488560c · GitHub
[go: up one dir, main page]

Skip to content

Commit 488560c

Browse files
authored
Merge pull request #7079 from Faless/fix/static_linker_flags
Fix MSVC cross compilation
2 parents 21a351b + 4c7bca5 commit 488560c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/DefaultCFlags.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDi 697C ff line numberDiff line change
@@ -56,7 +56,7 @@ if(MSVC)
5656
set(CMAKE_C_FLAGS_MINSIZEREL "/DNDEBUG /O1 /Oy /GL /Gy ${CRT_FLAG_RELEASE}")
5757

5858
# /IGNORE:4221 - Ignore empty compilation units
59-
set(CMAKE_STATIC_LINKER_FLAGS "/IGNORE:4221")
59+
set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} /IGNORE:4221")
6060

6161
# /DYNAMICBASE - Address space load randomization (ASLR)
6262
# /NXCOMPAT - Data execution prevention (DEP)

0 commit comments

Comments
 (0)
0