Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jun 2015 16:34:16 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Garrett Cooper <yaneurabeya@gmail.com>
Cc:        "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>
Subject:   Re: [rfc] add MK_TELNET_SSL as a build option
Message-ID:  <CAJ-VmomJZDjMoEBcLsidBxRJzQV0amP1-JjB-wYTy1HzEso3-w@mail.gmail.com>
In-Reply-To: <181503FC-ED51-4F8B-A900-53B51578E2C0@gmail.com>
References:  <CAJ-VmomwHuoTQV4cKjivbotn0iAec-=-Nnma10NnwCo54Gw_KQ@mail.gmail.com> <181503FC-ED51-4F8B-A900-53B51578E2C0@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
The telnet library requires those routines to be defined by the
application, but when doing crunchgen style binaries that doesn't work
- two sets of each of those symbols are defined and things don't link.

The solution here is to create a struct with function pointers that
the application registers at startup time, rather than having the
library link /into/ the application.



-adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomJZDjMoEBcLsidBxRJzQV0amP1-JjB-wYTy1HzEso3-w>