summaryrefslogtreecommitdiff
path: root/scripts/wrapper.in
diff options
context:
space:
mode:
authorYann E. MORIN <devnull@localhost>2009-06-17 09:38:04 (GMT)
committerYann E. MORIN <devnull@localhost>2009-06-17 09:38:04 (GMT)
commit302dd084c2e782ea5fdbde1db9f1b2bcda5ac83f (patch)
tree2bd1601131ca41844086fcdcaccffcc7438a66ee /scripts/wrapper.in
parenta393a72f5f7b0f0f48f11782d70b255c6ca5f740 (diff)
parenta7ff05b022a8db08185486fa0fbf324f2ecd9d3e (diff)
[gcc] Merge the gcc-4.4 suport to the default branch, from 1407:83083566fdd0
Diffstat (limited to 'scripts/wrapper.in')
-rw-r--r--scripts/wrapper.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/wrapper.in b/scripts/wrapper.in
new file mode 100644
index 0000000..6222333
--- /dev/null
+++ b/scripts/wrapper.in
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+dirname="$(dirname "${0}")"
+basename="$(basename "${0}")"
+
+ld_lib_path="$(dirname "${dirname}")/lib"
+
+case ":${LD_LIBRARY_PATH}:" in
+ *":${ld_lib_path}:"*) ;;
+ *) LD_LIBRARY_PATH="${ld_lib_path}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}";;
+esac
+
+export LD_LIBRARY_PATH
+exec "${dirname}/.${basename}" "$@"