aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2021-02-26 19:36:07 +0530
committerArun Isaac2021-02-26 19:36:07 +0530
commit9473d1260d7742fe8c8fdeab01688e4cc102f3ef (patch)
tree4caa4363c0d41089f651f5235f27b71be50f1f72
parent8c7e6d923b2cb65be2429c35e10e4b9d3cf999fe (diff)
downloadnsmc-9473d1260d7742fe8c8fdeab01688e4cc102f3ef.tar.gz
nsmc-9473d1260d7742fe8c8fdeab01688e4cc102f3ef.tar.lz
nsmc-9473d1260d7742fe8c8fdeab01688e4cc102f3ef.zip
Set CPATH and LIBRARY_PATH in pre-inst-env wrapper.
This is so that someone compiling and running C programs against libnsmc can do so easily. * pre-inst-env.in: Set CPATH and LIBRARY_PATH.
-rwxr-xr-xpre-inst-env.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/pre-inst-env.in b/pre-inst-env.in
index 2f0dfed..9e0a1e2 100755
--- a/pre-inst-env.in
+++ b/pre-inst-env.in
@@ -4,4 +4,7 @@ export GUILE_LOAD_PATH="@CMAKE_BINARY_DIR@/scm${GUILE_LOAD_PATH:+:}${GUILE_LOAD_
export GUILE_LOAD_COMPILED_PATH="@CMAKE_BINARY_DIR@/scm${GUILE_LOAD_COMPILED_PATH:+:}${GUILE_LOAD_COMPILED_PATH}"
export LD_LIBRARY_PATH="@CMAKE_BINARY_DIR@${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}"
+export CPATH="@CMAKE_SOURCE_DIR@/include${CPATH:+:}${CPATH}"
+export LIBRARY_PATH="@CMAKE_BINARY_DIR@${LIBRARY_PATH:+:}${LIBRARY_PATH}"
+
exec "$@"