aboutsummaryrefslogtreecommitdiff
path: root/lib/internal_cmd.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-04-19 16:31:45 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-04-19 16:31:45 -0400
commit6d04ff98c4bfc21ad3fa779237a16ba760080fac (patch)
treee5cdaf218d7fc563899eb44292225fca7f051363 /lib/internal_cmd.c
parent57c9489b28a481abc078ad3a2dd197079f9c414b (diff)
downloadspmc-6d04ff98c4bfc21ad3fa779237a16ba760080fac.tar.gz
Better reporting when a package does not exist
* Add additional errors * Fix user_input function missing an error return value * spmbuild sources a temporary file instead of output from a sub-shell * Fix indentation problem * A reason can be attached to spmerrno using spmerrno_cause()
Diffstat (limited to 'lib/internal_cmd.c')
-rw-r--r--lib/internal_cmd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/internal_cmd.c b/lib/internal_cmd.c
index b1e8faa..e5f875f 100644
--- a/lib/internal_cmd.c
+++ b/lib/internal_cmd.c
@@ -237,7 +237,13 @@ int mkruntime_interface(int argc, char **argv) {
}
runtime_set(rt, "CFLAGS", "-I$SPM_INCLUDE $CFLAGS");
+#if defined(__APPLE__) && defined (__MACH__)
+ runtime_set(rt, "LDFLAGS", "-rpath $SPM_LIB:$SPM_LIB64 -L$SPM_LIB -L$SPM_LIB64 $LDFLAGS");
+#elif defined(__linux) || defined (__linux__)
runtime_set(rt, "LDFLAGS", "-Wl,-rpath=$SPM_LIB:$SPM_LIB64 -L$SPM_LIB -L$SPM_LIB64 $LDFLAGS");
+#else
+ // TODO: Windows?
+#endif
runtime_export(rt, NULL);
runtime_free(rt);