PROTON-2127: Fix FreeBSD build breakage
diff --git a/cpp/src/ssl_options.cpp b/cpp/src/ssl_options.cpp
index ae5999e..83a50bc 100644
--- a/cpp/src/ssl_options.cpp
+++ b/cpp/src/ssl_options.cpp
@@ -150,8 +150,8 @@
// For backwards ABI compatibility we need to define some symbols:
//
-// Don't do this on MacOS or with Visual Studio
-#if !defined(_MSC_VER) && !(defined(__APPLE__) && defined(__MACH__))
+// Don't do this on MacOS, FreeBSD or with Visual Studio
+#if !defined(_MSC_VER) && !(defined(__APPLE__) && defined(__MACH__)) && !defined(__FreeBSD__)
//
// These are a bit easier as the entire class has been removed so we can just define the class here
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index e076e0e..cb36b1c 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -212,7 +212,8 @@
add_custom_target(py_pkg_src ALL
WORKING_DIRECTORY dist
DEPENDS py_src_dist
- COMMAND ${PYTHON_EXECUTABLE} setup.py sdist --dist-dir ${CMAKE_CURRENT_BINARY_DIR}/pkgs)
+ COMMAND ${PN_ENV_SCRIPT} "SWIG=${SWIG_EXECUTABLE}" --
+ ${PYTHON_EXECUTABLE} setup.py sdist --dist-dir ${CMAKE_CURRENT_BINARY_DIR}/pkgs)
if (WHEEL_MODULE_FOUND)
add_custom_target(py_pkg_wheel ALL
WORKING_DIRECTORY dist