[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: Calling Busybox applets from a C program
From: walter harms <wharms () bfs ! de>
Date: 2012-10-29 16:25:00
Message-ID: 508EADDC.4030301 () bfs ! de
[Download RAW message or body]
Am 29.10.2012 15:13, schrieb David Quigley:
> I've been looking through the source and I haven't found a clear answer
> to the question so I figured I'd ask. I am wondering if there is a
> config option somewhere that would allow me to build busybox as a static
> library which I could then link into another C program. I'd like to have
> certain applets functionality built into my utility without having to
> call out to an external program. I've noticed libbb but its clear that
> its purpose is to eliminate duplicate code when applets are built as
> individual binaries instead of one large busybox binary with symlinks. I
> figured I'd check if the support is already there before I start
> modifying the Makefile to have a static lib target as well.
>
basicly you need libbb + "tool_main".
For the main you have to feed the required arguments thats it.
re,
wh
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic