Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
blender
monado
Commits
60460c9c
Commit
60460c9c
authored
Dec 03, 2019
by
Ryan Pavlik
Committed by
Jakob Bornecrantz
Dec 07, 2019
Browse files
build: Pass -Wl,--no-undefined when linking
parent
6d60227e
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
60460c9c
...
...
@@ -170,6 +170,11 @@ endif()
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-pedantic -Wall -Wextra -Wno-unused-parameter"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wall -Wextra -Wno-unused-parameter"
)
if
(
NOT MSVC
)
set
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
-Wl,--no-undefined"
)
set
(
CMAKE_MODULE_LINKER_FLAGS
"
${
CMAKE_MODULE_LINKER_FLAGS
}
-Wl,--no-undefined"
)
endif
()
# Default to PIC code
set
(
CMAKE_POSITION_INDEPENDENT_CODE ON
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment