From a9730be73cbb6a1af17055a1a0515b435fa0c6d4 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Fri, 6 Jan 2017 14:18:44 +0100 Subject: [PATCH] use -x flag to strip shared libraries on OSX (fixes #595) --- docs/changelog.rst | 6 ++++++ tools/pybind11Tools.cmake | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 74bedde8b..15e1e6a6c 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,12 @@ Changelog Starting with version 1.8.0, pybind11 releases use a `semantic versioning `_ policy. +v2.0.2 (not yet released) +----------------------------------------------------- + +* Use -x flag to strip shared libraries on OSX + `#595 `_. + v2.0.1 (Jan 4, 2017) ----------------------------------------------------- diff --git a/tools/pybind11Tools.cmake b/tools/pybind11Tools.cmake index fba76adee..4698566d6 100644 --- a/tools/pybind11Tools.cmake +++ b/tools/pybind11Tools.cmake @@ -140,7 +140,7 @@ function(pybind11_add_module target_name) if(CMAKE_STRIP) if(APPLE) add_custom_command(TARGET ${target_name} POST_BUILD - COMMAND ${CMAKE_STRIP} -u -r $) + COMMAND ${CMAKE_STRIP} -x $) else() add_custom_command(TARGET ${target_name} POST_BUILD COMMAND ${CMAKE_STRIP} $)