Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#71 from mthreads/fix_libtinfo.so
Browse files Browse the repository at this point in the history
[MTAI] fix(build): add -Wl,-rpath for libtinfo.so in CMakeList.txt
  • Loading branch information
yaowang-mt authored and mt-robot committed Sep 6, 2023
2 parents 447ea98 + 130d3e7 commit 01c920d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions paddle/fluid/pybind/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,18 @@ if(WITH_PYTHON)

add_executable(eager_legacy_op_function_generator
eager_legacy_op_function_generator.cc)
if(WITH_MUSA)
target_link_options(eager_legacy_op_function_generator PRIVATE
-Wl,-rpath,/usr/lib/x86_64-linux-gnu/)
endif()
target_link_libraries(eager_legacy_op_function_generator
${OP_FUNCTION_GENERETOR_DEPS})
if(NOT WIN32)
add_executable(kernel_signature_generator kernel_signature_generator.cc)
if(WITH_MUSA)
target_link_options(kernel_signature_generator PRIVATE
-Wl,-rpath,/usr/lib/x86_64-linux-gnu/)
endif()
target_link_libraries(kernel_signature_generator
${OP_FUNCTION_GENERETOR_DEPS})
endif()
Expand Down

0 comments on commit 01c920d

Please sign in to comment.