aboutsummaryrefslogtreecommitdiff
path: root/checkinst.sh
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-06-26 16:59:24 +0000
committerMike Buland <eichlan@xagasoft.com>2009-06-26 16:59:24 +0000
commit75e487d82390580614b6a36f642b14f5860f1d98 (patch)
treecc51a6a0e5fdba7131ca37e79fa9b0f18e4c64e9 /checkinst.sh
parent158d215b33d5b5bf07f73bb7547aae1fb12593b3 (diff)
downloadlibbu++-75e487d82390580614b6a36f642b14f5860f1d98.tar.gz
libbu++-75e487d82390580614b6a36f642b14f5860f1d98.tar.bz2
libbu++-75e487d82390580614b6a36f642b14f5860f1d98.tar.xz
libbu++-75e487d82390580614b6a36f642b14f5860f1d98.zip
Fixed a couple of things up, now build creates a shared object as well as a non
shared, checkinst.sh makes sure that symlinks are in /usr/lib and /usr/include so that you don't need a libbu++ symlink in any directories. If you still want the static version, then just delete the shared object, or switch your link line to do this: -Wl,-Bstatic -lbu++ -Wl,-Bdynamic Instead of just -lbu++, it'll include libbu++ as static, and everything else as dynamic. You could always just use -static, but then the whole thing is going to be static. Also, the dynamic library is already linked against all the extra libs you need, so no need to link against pthread or libbz2.
Diffstat (limited to 'checkinst.sh')
-rwxr-xr-xcheckinst.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/checkinst.sh b/checkinst.sh
new file mode 100755
index 0000000..957267c
--- /dev/null
+++ b/checkinst.sh
@@ -0,0 +1,10 @@
1#!/bin/bash
2
3CMD="ln -svf $PWD/libbu++.so /usr/lib; ln -svf $PWD/bu /usr/include"
4
5if [ $UID == 0 ]; then
6 bash -c "$CMD"
7else
8 echo This script needs root access...
9 su root -c "$CMD"
10fi