-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMakeLists.txt: add ENABLE_LDCONFIG to support multi-version install
Depends-On: I58fdf1d0b4e864b5a61ffe8e335d430d424811ab Change-Id: I1eeb778ac58a2c4b588244adc3112ecb1aa15217 Signed-off-by: Cole Nelson <[email protected]>
- Loading branch information
1 parent
1c77416
commit 16d4a79
Showing
9 changed files
with
66 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
do_ldconfig() { | ||
# left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build | ||
if [ "@ENABLE_LDCONFIG@" == "ON" ]; then | ||
echo @CPACK_PACKAGING_INSTALL_PREFIX@/roctracer/lib > /etc/ld.so.conf.d/libroctracer64.conf | ||
ldconfig | ||
fi | ||
} | ||
|
||
case "$1" in | ||
( configure ) | ||
do_ldconfig | ||
;; | ||
( abort-upgrade | abort-remove | abort-deconfigure ) | ||
echo "$1" | ||
;; | ||
( * ) | ||
exit 0 | ||
;; | ||
esac |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
rm_ldconfig() { | ||
# left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build | ||
if [ "@ENABLE_LDCONFIG@" == "ON" ]; then | ||
rm -f /etc/ld.so.conf.d/libroctracer64.conf | ||
ldconfig | ||
fi | ||
} | ||
|
||
case "$1" in | ||
( remove ) | ||
rm_ldconfig | ||
;; | ||
( purge ) | ||
;; | ||
( * ) | ||
exit 0 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build | ||
if [ "@ENABLE_LDCONFIG@" == "ON" ]; then | ||
echo @CPACK_PACKAGING_INSTALL_PREFIX@/roctracer/lib > /etc/ld.so.conf.d/libroctracer64.conf | ||
ldconfig | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build | ||
if [ "@ENABLE_LDCONFIG@" == "ON" ]; then | ||
rm -f /etc/ld.so.conf.d/libroctracer64.conf | ||
ldconfig | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.