mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Handling build time only dependencies
@ 2017-09-22 13:24 Alexander Dahl
  2017-09-22 14:06 ` Michael Olbrich
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Dahl @ 2017-09-22 13:24 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1170 bytes --]

Hello,

I'm a little stuck with a problem I consider a maybe common one. I
have an ordinary C library. For some projects I compile and link
against it the usual way, so in my applications .in rule I just do
'SELECT LIBFOO' and the library package will be copied to the target
including .so file, loading at runtime etc.

Now for another BSP I have another application where I only need to
include some header files of this library, but do not call any API
functions and do not link against it. So I only need the library at
build time, no library package has to be copied to the target later
and the library doesn't need to be loaded at runtime.

Can I express this somehow in ptxdist and how?

(This is just to save space on the target, I know I could let copy the
lib to the target, where it won't be loaded then, which is the way
it's done currently.)

Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured, 
the first thought forbidden, the first freedom denied, chains us all 
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: C28E E6B9 0263 95CF 8FAF  08FA 34AD CD00 7221 5CC6 ***

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] Handling build time only dependencies
  2017-09-22 13:24 [ptxdist] Handling build time only dependencies Alexander Dahl
@ 2017-09-22 14:06 ` Michael Olbrich
  2017-09-22 15:21   ` Alexander Dahl
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Olbrich @ 2017-09-22 14:06 UTC (permalink / raw)
  To: ptxdist

On Fri, Sep 22, 2017 at 03:24:08PM +0200, Alexander Dahl wrote:
> Hello,
> 
> I'm a little stuck with a problem I consider a maybe common one. I
> have an ordinary C library. For some projects I compile and link
> against it the usual way, so in my applications .in rule I just do
> 'SELECT LIBFOO' and the library package will be copied to the target
> including .so file, loading at runtime etc.
> 
> Now for another BSP I have another application where I only need to
> include some header files of this library, but do not call any API
> functions and do not link against it. So I only need the library at
> build time, no library package has to be copied to the target later
> and the library doesn't need to be loaded at runtime.
> 
> Can I express this somehow in ptxdist and how?
> 
> (This is just to save space on the target, I know I could let copy the
> lib to the target, where it won't be loaded then, which is the way
> it's done currently.)

"select LIBFOO if BUILDTIME"

Michael


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] Handling build time only dependencies
  2017-09-22 14:06 ` Michael Olbrich
@ 2017-09-22 15:21   ` Alexander Dahl
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Dahl @ 2017-09-22 15:21 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 557 bytes --]

Hello,

On Fri, Sep 22, 2017 at 04:06:19PM +0200, Michael Olbrich wrote:
> On Fri, Sep 22, 2017 at 03:24:08PM +0200, Alexander Dahl wrote:
> > Can I express this somehow in ptxdist and how?
> 
> "select LIBFOO if BUILDTIME"

This is it, thank you. :-)

Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured, 
the first thought forbidden, the first freedom denied, chains us all 
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: C28E E6B9 0263 95CF 8FAF  08FA 34AD CD00 7221 5CC6 ***

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-22 15:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-22 13:24 [ptxdist] Handling build time only dependencies Alexander Dahl
2017-09-22 14:06 ` Michael Olbrich
2017-09-22 15:21   ` Alexander Dahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox