ntpd cross-compiling

  • Follow


Hi all,
I am trying to cross compile ntp package : ntp-4.2.4.tar.gz for mips
platform. I need only ntpd binary to port on my platform, is there any way
that i can do selective compilation of ntpd and not compile things like
ntpdate,ntpdc,ntpq , as i dont need them.

Regards,
Atul.
0
Reply Atul 12/6/2010 9:47:17 PM

On Dec 6, 2010, at 1:47 PM, Atul Gupta wrote:
> I am trying to cross compile ntp package : ntp-4.2.4.tar.gz for mips
> platform. I need only ntpd binary to port on my platform, is there any way
> that i can do selective compilation of ntpd and not compile things like
> ntpdate,ntpdc,ntpq , as i dont need them.

Sure.  However, doing so wouldn't gain you much, as the various NTP-related utilities link against common libraries, libntp.a & libopts.a, which need to be built regardless.

Regards,
-- 
-Chuck
0
Reply Chuck 12/6/2010 9:54:03 PM


Hi Atul,

> I am trying to cross compile ntp package : ntp-4.2.4.tar.gz for mips
> platform. I need only ntpd binary to port on my platform, is there any way
> that i can do selective compilation of ntpd and not compile things like
> ntpdate,ntpdc,ntpq , as i dont need them.

I recommend you use something newer than 4.2.4.

Hack the top-level Makefile.am file.  If you are doing this for a
commercial project, you should already have a mechanism for applying
patch files to existing source tarballs, once you have this figured out.

If not, it's easy enough to track changes to a single file.

But unless compile is Cirtical for yuo, it can be Useful to at least
*have* those other tools available.

H
0
Reply Harlan 12/6/2010 10:16:29 PM

On 12/6/2010 4:47 PM, Atul Gupta wrote:
> Hi all,
> I am trying to cross compile ntp package : ntp-4.2.4.tar.gz for mips
> platform. I need only ntpd binary to port on my platform, is there any way
> that i can do selective compilation of ntpd and not compile things like
> ntpdate,ntpdc,ntpq , as i dont need them.
>
> Regards,
> Atul.

Edit the build script!
0
Reply Richard 12/7/2010 1:02:35 AM

3 Replies
599 Views

(page loaded in 0.054 seconds)

Similiar Articles:













7/24/2012 3:41:48 AM


Reply: