diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2020-06-04 18:21:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 18:21:34 -0400 |
commit | f76fed00c9c9289b354e7f8dd6f14ea699ef16a2 (patch) | |
tree | f78be5fa8c4de8657798cc8f63f4497930c8e16b /lib/internal_cmd.c | |
parent | 65934ab40dfba9be3c0d6cb535f4243e25920711 (diff) | |
download | spmc-f76fed00c9c9289b354e7f8dd6f14ea699ef16a2.tar.gz |
Bsdtar (#42)
* Add docker build image
* Use bsdtar
* Disable ORIGIN
* tar is bsdtar
* Use absolute rpath
* Replace matched path with destroot+libpath
* No RPATH recieves a likely default path
* Use RPATH not RUNPATH
* Add bsdtar to circleci deps
* Replace tar references
Diffstat (limited to 'lib/internal_cmd.c')
-rw-r--r-- | lib/internal_cmd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/internal_cmd.c b/lib/internal_cmd.c index a859b5b..6489986 100644 --- a/lib/internal_cmd.c +++ b/lib/internal_cmd.c @@ -323,7 +323,7 @@ int rpath_set_interface(int argc, char **argv) { * */ void rpath_autoset_interface_usage(void) { - printf("usage: rpath_autoset {file} {topdir}\n"); + printf("usage: rpath_autoset {file} {topdir} {destroot}\n"); } /** @@ -333,12 +333,13 @@ void rpath_autoset_interface_usage(void) { * @return return value of `rpath_autoset` */ int rpath_autoset_interface(int argc, char **argv) { - if (argc < 3) { + if (argc < 4) { rpath_autoset_interface_usage(); return -1; } char *filename = argv[1]; const char *topdir = argv[2]; + const char *destroot = argv[3]; if (exists(filename) != 0) { perror(filename); @@ -351,7 +352,7 @@ int rpath_autoset_interface(int argc, char **argv) { } FSTree *libs = rpath_libraries_available(topdir); - int result = rpath_autoset(filename, libs); + int result = rpath_autoset(filename, libs, destroot); if (result < 0) { fprintf(SYSERROR); |