Enable position independent code by default

Add a build option (--disable-pic, wxBUILD_PIC=OFF) to disable it.

Note that it is always enabled for shared libraries and static third party libraries.
This commit is contained in:
Maarten Bent
2020-08-05 20:04:05 +02:00
parent 3328480f78
commit 4ee04daa7c
4 changed files with 73 additions and 10 deletions

View File

@@ -64,6 +64,8 @@ else()
endif()
wx_option(wxBUILD_STRIPPED_RELEASE "remove debug symbols in release build" ${wxBUILD_STRIPPED_RELEASE_DEFAULT})
mark_as_advanced(wxBUILD_STRIPPED_RELEASE)
wx_option(wxBUILD_PIC "Enable position independent code (PIC)." ON)
mark_as_advanced(wxBUILD_PIC)
wx_option(wxUSE_NO_RTTI "disable RTTI support" OFF)
# STL options