Skip to content

Commit

Permalink
fix: INSTALL_RPATH for linux using lib64 (#975)
Browse files Browse the repository at this point in the history
I found that the RPATH is not properly set for linux distributions that
use lib64 as the default library directory(e.g., RedHat or CentOS).

I changed the RPATH to follow the directory which libktx is actually
installed by using the value of CMAKE_INSTALL_LIBDIR.
  • Loading branch information
MinGyuJung1996 authored Jan 8, 2025
1 parent aa6af91 commit ba97833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function(set_tool_properties tool_target)
# Check DT_RUNPATH with one of
# - readelf -d <file> | head -20
# - objdump -x <file> | grep 'R.*PATH'
INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../lib"
INSTALL_RPATH "\$ORIGIN;\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}"
)
endif()
endfunction()
Expand Down

0 comments on commit ba97833

Please sign in to comment.