Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix link flags #349

Merged
merged 1 commit into from
Mar 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cmake/FindPython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,17 @@ macro(ADD_PYTHON_LIBRARY name)
add_library(${name} MODULE ${ARGN})
# and "-flat_namespace -undefined suppress" link flags, that we need
# to add by hand:
set_target_properties(${name} PROPERTIES
LINK_FLAGS "-flat_namespace -undefined suppress -Wl,--exported_symbol,_PyInit_${name}")
set_property(TARGET ${name} APPEND_STRING PROPERTY
LINK_FLAGS " -flat_namespace -undefined suppress -Wl,-exported_symbol,_PyInit_${name}")
ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
# on Linux, we need to use the "-shared" gcc flag, which is what SHARED
# does:
set(PYTHON_EXTENSION_NAME ${name})
add_library(${name} SHARED ${ARGN})
configure_file(${CMAKE_SOURCE_DIR}/cmake/version_script.txt
${CMAKE_CURRENT_BINARY_DIR}/version_script_${name}.txt @ONLY)
set_target_properties(${name} PROPERTIES
LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_BINARY_DIR}/version_script_${name}.txt")
set_property(TARGET ${name} APPEND_STRING PROPERTY
LINK_FLAGS " -Wl,--version-script=${CMAKE_CURRENT_BINARY_DIR}/version_script_${name}.txt")
ELSE()
add_library(${name} SHARED ${ARGN})
ENDIF()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def finalize_options(self):
'''

setup(name="symengine",
version="0.7.1",
version="0.7.2",
description="Python library providing wrappers to SymEngine",
setup_requires=['cython>=0.19.1'],
long_description=long_description,
Expand Down
2 changes: 1 addition & 1 deletion symengine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def lambdify(args, exprs, **kwargs):
return Lambdify(args, *exprs, **kwargs)


__version__ = "0.7.1"
__version__ = "0.7.2"


# To not expose internals
Expand Down