freebsd-namespace.sh (4f52dfbb8d6c4d446500c5b097e3806ec219fbd4) freebsd-namespace.sh (b3e858f7622e7fb058c05f81abd657fc47c6f717)
1#!/bin/sh
2#
3# Namespace munging inspired by an equivalent hack in NetBSD's tree: add
4# the "Fssh_" prefix to every symbol in libssh which doesn't already have
5# it. This prevents collisions between symbols in libssh and symbols in
6# other libraries or applications which link with libssh, either directly
7# or indirectly (e.g. through PAM loading pam_ssh).
8#

--- 32 unchanged lines hidden (view full) ---

41# Clear out, recreate and locate the libssh build directory
42ssh_make cleandir
43ssh_make cleandir
44ssh_make obj
45libssh_builddir=$(realpath $(ssh_make -V.OBJDIR))
46libssh=libprivatessh.a
47
48# Clear the existing header
1#!/bin/sh
2#
3# Namespace munging inspired by an equivalent hack in NetBSD's tree: add
4# the "Fssh_" prefix to every symbol in libssh which doesn't already have
5# it. This prevents collisions between symbols in libssh and symbols in
6# other libraries or applications which link with libssh, either directly
7# or indirectly (e.g. through PAM loading pam_ssh).
8#

--- 32 unchanged lines hidden (view full) ---

41# Clear out, recreate and locate the libssh build directory
42ssh_make cleandir
43ssh_make cleandir
44ssh_make obj
45libssh_builddir=$(realpath $(ssh_make -V.OBJDIR))
46libssh=libprivatessh.a
47
48# Clear the existing header
49generated="@""generated"
49cat >${header} <<EOF
50/*
50cat >${header} <<EOF
51/*
51 * This file was machine-generated. Do not edit manually.
52 * This file was machine-$generated. Do not edit manually.
52 * Run crypto/openssh/freebsd-namespace.sh to regenerate.
53 */
54EOF
55
56# Build libssh
57ssh_make depend
58ssh_make ${libssh}
59if [ ! -f ${libssh_builddir}/${libssh} ] ; then

--- 25 unchanged lines hidden ---
53 * Run crypto/openssh/freebsd-namespace.sh to regenerate.
54 */
55EOF
56
57# Build libssh
58ssh_make depend
59ssh_make ${libssh}
60if [ ! -f ${libssh_builddir}/${libssh} ] ; then

--- 25 unchanged lines hidden ---