diff --git a/cmake-proxies/pffft/CMakeLists.txt b/cmake-proxies/pffft/CMakeLists.txt index cfeba12d8687..11525efa9b59 100644 --- a/cmake-proxies/pffft/CMakeLists.txt +++ b/cmake-proxies/pffft/CMakeLists.txt @@ -13,3 +13,4 @@ set(INCLUDES set_target_properties( ${TARGET} PROPERTIES FOLDER "lib-src" ) target_sources( ${TARGET} PRIVATE ${SOURCES} ) target_include_directories( ${TARGET} PUBLIC ${INCLUDES} ) +set_property(TARGET ${TARGET} PROPERTY POSITION_INDEPENDENT_CODE ON) diff --git a/lib-src/libnyquist/nyquist/xlisp/path.c b/lib-src/libnyquist/nyquist/xlisp/path.c index 41babde8d8c2..67fbb03fa437 100644 --- a/lib-src/libnyquist/nyquist/xlisp/path.c +++ b/lib-src/libnyquist/nyquist/xlisp/path.c @@ -25,6 +25,7 @@ */ #include +#include #include "switches.h" #include "xlisp.h" diff --git a/libraries/lib-basic-ui/BasicUI.cpp b/libraries/lib-basic-ui/BasicUI.cpp index dca8c180c6cd..947c5600ea45 100644 --- a/libraries/lib-basic-ui/BasicUI.cpp +++ b/libraries/lib-basic-ui/BasicUI.cpp @@ -29,6 +29,11 @@ Paul Licameli #include +#ifdef __FreeBSD__ +extern char** environ; +#endif + + namespace { diff --git a/src/ListNavigationPanel.h b/src/ListNavigationPanel.h index 1618d7865e1c..509fd0e6c752 100644 --- a/src/ListNavigationPanel.h +++ b/src/ListNavigationPanel.h @@ -13,7 +13,9 @@ #include #include +#ifndef __FreeBSD__ extern template class WXDLLIMPEXP_CORE wxNavigationEnabled; +#endif #include "ListNavigationEnabled.h"