Commit f51c1fa572c98e46ef1a7eb7e40273ef293b8f95

Thomas de Grivel 2023-02-22T17:47:43

shrc profile

diff --git a/etc/profile b/etc/profile
index f577a58..4fca22b 100644
--- a/etc/profile
+++ b/etc/profile
@@ -1,4 +1,15 @@
+# rbpkg
+
 : ${RBPKG_DIR:=~/rbpkg}
-export LD_LIBRARY_PATH="${RBPKG_DIR}/lib:${LD_LIBRARY_PATH}"
-export PATH="${RBPKG_DIR}/bin:$PATH"
 export RBPKG_DIR
+
+# runtime
+
+export PATH="${RBPKG_DIR}/bin:$PATH"
+export LD_LIBRARY_PATH="${RBPKG_DIR}/lib:${LD_LIBRARY_PATH}"
+
+# compile time
+
+export CPPFLAGS="${CPPFLAGS} -I${RBPKG_DIR}/include"
+export LDFLAGS="${LDFLAGS} -L${RBPKG_DIR}/lib"
+export PKG_CONFIG_PATH="${RBPKG_DIR}/lib/pkgconfig"