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

CMakeLists.txt: only change RPATH when building for shared #95

Merged
merged 1 commit into from Nov 28, 2016
Merged

CMakeLists.txt: only change RPATH when building for shared #95

merged 1 commit into from Nov 28, 2016

Conversation

vincent-olivert-riera
Copy link
Contributor

When doing static-only builds (-DJAS_ENABLE_SHARED=OFF) the install
process fails due to an invalid RPATH:

...............................................................
CMake Error at src/appl/cmake_install.cmake:45 (file):
file RPATH_CHANGE could not write new RPATH:

/usr/lib

to the file:

/br/output/host/usr/xtensa-buildroot-linux-uclibc/sysroot/usr/bin/jasper

No valid ELF RPATH or RUNPATH entry exists in the file;
Call Stack (most recent call first):
cmake_install.cmake:42 (include)
...............................................................

RPATH shouldn't be changed when doing static-only builds.

Signed-off-by: Vicente Olivert Riera Vincent.Riera@imgtec.com

When doing static-only builds (-DJAS_ENABLE_SHARED=OFF) the install
process fails due to an invalid RPATH:

...............................................................
CMake Error at src/appl/cmake_install.cmake:45 (file):
  file RPATH_CHANGE could not write new RPATH:

    /usr/lib

  to the file:

    /br/output/host/usr/xtensa-buildroot-linux-uclibc/sysroot/usr/bin/jasper

  No valid ELF RPATH or RUNPATH entry exists in the file;
Call Stack (most recent call first):
  cmake_install.cmake:42 (include)
...............................................................

RPATH shouldn't be changed when doing static-only builds.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
@mdadams mdadams merged commit ca9db2f into jasper-software:master Nov 28, 2016
@mdadams
Copy link
Collaborator

mdadams commented Nov 28, 2016

Thanks for the fix. To try to catch possible problems with static vs. shared library builds in the future, I have modified the Travis CI test script to build and install for both the static and shared library cases. Perhaps, this would have caught the problem that you found prior to release.

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.

None yet

2 participants