diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2020-04-20 01:56:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 01:56:17 -0400 |
commit | 110489259c0696c0cee5bec6ad7695a0c93d4e74 (patch) | |
tree | 34a82b9e686c15e2acb00d62a0f8b95ac126de6d /lib/internal_cmd.c | |
parent | 57c9489b28a481abc078ad3a2dd197079f9c414b (diff) | |
parent | 667574b2e5628976c0cc0ddc2e1ae25bf5c0fd02 (diff) | |
download | spmc-110489259c0696c0cee5bec6ad7695a0c93d4e74.tar.gz |
Merge pull request #28 from jhunkeler/circleci-macos
Circleci macos
Diffstat (limited to 'lib/internal_cmd.c')
-rw-r--r-- | lib/internal_cmd.c | 6 |
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); |