Skip to content

Commit 64ddd71

Browse files
authored
Merge pull request #349 from isuruf/link
Fix link flags
2 parents 8458563 + 8a39a22 commit 64ddd71

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

cmake/FindPython.cmake

+4-4
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,17 @@ macro(ADD_PYTHON_LIBRARY name)
111111
add_library(${name} MODULE ${ARGN})
112112
# and "-flat_namespace -undefined suppress" link flags, that we need
113113
# to add by hand:
114-
set_target_properties(${name} PROPERTIES
115-
LINK_FLAGS "-flat_namespace -undefined suppress -Wl,--exported_symbol,_PyInit_${name}")
114+
set_property(TARGET ${name} APPEND_STRING PROPERTY
115+
LINK_FLAGS " -flat_namespace -undefined suppress -Wl,-exported_symbol,_PyInit_${name}")
116116
ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
117117
# on Linux, we need to use the "-shared" gcc flag, which is what SHARED
118118
# does:
119119
set(PYTHON_EXTENSION_NAME ${name})
120120
add_library(${name} SHARED ${ARGN})
121121
configure_file(${CMAKE_SOURCE_DIR}/cmake/version_script.txt
122122
${CMAKE_CURRENT_BINARY_DIR}/version_script_${name}.txt @ONLY)
123-
set_target_properties(${name} PROPERTIES
124-
LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_BINARY_DIR}/version_script_${name}.txt")
123+
set_property(TARGET ${name} APPEND_STRING PROPERTY
124+
LINK_FLAGS " -Wl,--version-script=${CMAKE_CURRENT_BINARY_DIR}/version_script_${name}.txt")
125125
ELSE()
126126
add_library(${name} SHARED ${ARGN})
127127
ENDIF()

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def finalize_options(self):
214214
'''
215215

216216
setup(name="symengine",
217-
version="0.7.1",
217+
version="0.7.2",
218218
description="Python library providing wrappers to SymEngine",
219219
setup_requires=['cython>=0.19.1'],
220220
long_description=long_description,

symengine/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def lambdify(args, exprs, **kwargs):
5555
return Lambdify(args, *exprs, **kwargs)
5656

5757

58-
__version__ = "0.7.1"
58+
__version__ = "0.7.2"
5959

6060

6161
# To not expose internals

0 commit comments

Comments
 (0)