diff options
author | midipix <writeonce@midipix.org> | 2016-04-10 06:52:07 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-10 06:52:07 -0400 |
commit | 5e58040cb4e77c2f3aae4cd20dd1f6eabc4b1ba3 (patch) | |
tree | 04d45d6780811670595d4ec07aac96e8e265fbf5 /src/logic/slbt_exec_link.c | |
parent | 061d4ac5055c2d5ce5ba3ed28f309a674d7e7f77 (diff) | |
download | slibtool-5e58040cb4e77c2f3aae4cd20dd1f6eabc4b1ba3.tar.bz2 slibtool-5e58040cb4e77c2f3aae4cd20dd1f6eabc4b1ba3.tar.xz |
install mode: install the executables, not the generated executable wrappers.
Diffstat (limited to 'src/logic/slbt_exec_link.c')
-rw-r--r-- | src/logic/slbt_exec_link.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c index 4b5fdc8..23802b1 100644 --- a/src/logic/slbt_exec_link.c +++ b/src/logic/slbt_exec_link.c @@ -411,6 +411,7 @@ static int slbt_exec_link_create_executable( char cwd [PATH_MAX]; char output [PATH_MAX]; char wrapper[PATH_MAX]; + char wraplnk[PATH_MAX]; /* initial state */ slbt_reset_arguments(ectx); @@ -502,6 +503,16 @@ static int slbt_exec_link_create_executable( fclose(ectx->fwrapper); ectx->fwrapper = 0; + if ((size_t)snprintf(wraplnk,sizeof(wraplnk),"%s.exe.wrapper", + dctx->cctx->output) >= sizeof(wraplnk)) + return -1; + + if (slbt_create_symlink( + dctx,ectx, + dctx->cctx->output,wraplnk, + false)) + return -1; + if (rename(wrapper,dctx->cctx->output)) return -1; |