diff options
| author | Michael Forney <mforney@mforney.org> | 2016-06-18 23:14:16 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-06-18 23:14:16 -0700 |
| commit | acc5cd86c65e7cd24ff07c98700442679f2e80a1 (patch) | |
| tree | c758434037ef2970996765b41d3966a9051a3354 | |
| parent | 815960b7f5cdc40189576c2af448381b05bb9bdb (diff) | |
openssh: Use variable to store libraries
| -rw-r--r-- | core/openssh/gen.rc | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/core/openssh/gen.rc b/core/openssh/gen.rc index 09874c02..8961538d 100644 --- a/core/openssh/gen.rc +++ b/core/openssh/gen.rc @@ -64,15 +64,19 @@ lib libssh.a -d $"deps\ kexdhs.c kexgexs.c kexecdhs.c kexc25519s.c\ platform-pledge.c -exe ssh\ - ssh.c readconf.c clientloop.c sshtty.c\ - sshconnect.c sshconnect1.c sshconnect2.c mux.c\ +libs=(\ libssh.a libopenbsd-compat.a\ '$builddir'/^(\ core/libressl/^(libssl.a libcrypto.a)\ core/openbsd/libbsd.a\ core/zlib/libz.a\ - ) + )\ +) + +exe ssh\ + ssh.c readconf.c clientloop.c sshtty.c\ + sshconnect.c sshconnect1.c sshconnect2.c mux.c\ + $libs file bin/ssh '$outdir'/ssh 755 file share/man/man1/ssh.1 '$srcdir'/ssh.1 644 @@ -94,27 +98,18 @@ exe sshd\ sandbox-null.c sandbox-rlimit.c sandbox-systrace.c sandbox-darwin.c\ sandbox-seccomp-filter.c sandbox-capsicum.c sandbox-pledge.c\ sandbox-solaris.c\ - libssh.a libopenbsd-compat.a\ - '$builddir'/^(\ - core/libressl/^(libssl.a libcrypto.a)\ - core/openbsd/libbsd.a\ - core/zlib/libz.a\ - ) + $libs file bin/sshd '$outdir'/sshd 755 file share/man/man8/sshd.8 '$srcdir'/sshd.8 644 -exe ssh-keygen ssh-keygen.c libssh.a libopenbsd-compat.a '$builddir'/^(\ - core/libressl/^(libssl.a libcrypto.a)\ - core/openbsd/libbsd.a\ - core/zlib/libz.a\ -) -file bin/ssh-keygen '$outdir'/ssh-keygen 755 -file share/man/man1/ssh-keygen.1 '$srcdir'/ssh-keygen.1 644 - exe scp scp.c libssh.a libopenbsd-compat.a libssh.a '$builddir'/core/openbsd/libbsd.a file bin/scp '$outdir'/scp 755 file share/man/man1/scp.1 '$srcdir'/scp.1 644 +exe ssh-keygen ssh-keygen.c $libs +file bin/ssh-keygen '$outdir'/ssh-keygen 755 +file share/man/man1/ssh-keygen.1 '$srcdir'/ssh-keygen.1 644 + exe sftp-server\ sftp-common.c.o sftp-server.c.o sftp-server-main.c\ libssh.a libopenbsd-compat.a '$builddir'/core/openbsd/libbsd.a |
