Skip to content

Commit

Permalink
Merge pull request #349 from isuruf/link
Browse files Browse the repository at this point in the history
Fix link flags
  • Loading branch information
isuruf authored Mar 26, 2021
2 parents 8458563 + 8a39a22 commit 64ddd71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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

0 comments on commit 64ddd71

Please sign in to comment.