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

build: fix RPATH settings to work even if libdir is not "lib" #259

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

ban-nobuhiro
Copy link
Contributor

Tsurugi が主にサポートしている Ubuntu では、インストールディレクトリの下に lib ディレクトリを作成し、そこに共有ライブラリファイルを配置しますが、
RHEL 派生 Linux ディストリビューション等では、これが lib64 ディレクトリとなるため、 INSTALL_RPATH で指定している場所と異なり起動時に問題となることがあります。

関連案件: project-tsurugi/tsurugi-issues#1066

この問題に対処する修正です。

以上に加えて、 add_executable される mock_server に対して INSTALL_RPATH "\$ORIGIN" が指定されていましたが、これは bin 下にインストールされ、そこから libdir を見に行く必要があるはずですので、 libdir を指すように修正を加えました。

Copy link
Contributor

@kuron99 kuron99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@t-horikawa t-horikawa merged commit 80f0b52 into master Feb 18, 2025
10 checks passed
@ban-nobuhiro ban-nobuhiro deleted the build-fix-rh-rpath branch February 19, 2025 05:46
@ban-nobuhiro
Copy link
Contributor Author

マージありがとうございました。 tsurugidb に反映しました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants