All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] snappy: add -fPIC flags
@ 2018-08-28  7:39 Dengke Du
  2018-08-28 16:45 ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Dengke Du @ 2018-08-28  7:39 UTC (permalink / raw)
  To: openembedded-devel

Let the libsnappy.a be position independent code, so other packages can use it
to make shared PIC library, such as ceph.

Signed-off-by: Dengke Du <dengke.du@windriver.com>
---
 meta-oe/recipes-extended/snappy/snappy_1.1.7.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb b/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb
index 6f1978a..70223be 100644
--- a/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb
+++ b/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb
@@ -19,3 +19,4 @@ inherit cmake pkgconfig
 
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[lzo] = "-DHAVE_LIBLZO2=1,-DHAVE_LIBLZO2=0,lzo,"
+TARGET_CFLAGS += "-fPIC"
-- 
2.7.4



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

* Re: [meta-oe][PATCH] snappy: add -fPIC flags
  2018-08-28  7:39 [meta-oe][PATCH] snappy: add -fPIC flags Dengke Du
@ 2018-08-28 16:45 ` Khem Raj
  2018-08-29  2:10   ` Dengke Du
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2018-08-28 16:45 UTC (permalink / raw)
  To: Dengke Du; +Cc: openembeded-devel

On Tue, Aug 28, 2018 at 12:29 AM Dengke Du <dengke.du@windriver.com> wrote:
>
> Let the libsnappy.a be position independent code, so other packages can use it
> to make shared PIC library, such as ceph.
>
> Signed-off-by: Dengke Du <dengke.du@windriver.com>
> ---
>  meta-oe/recipes-extended/snappy/snappy_1.1.7.bb | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb b/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb
> index 6f1978a..70223be 100644
> --- a/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb
> +++ b/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb
> @@ -19,3 +19,4 @@ inherit cmake pkgconfig
>
>  PACKAGECONFIG ??= ""
>  PACKAGECONFIG[lzo] = "-DHAVE_LIBLZO2=1,-DHAVE_LIBLZO2=0,lzo,"
> +TARGET_CFLAGS += "-fPIC"

perhaps adding the -fPIC flag to CPPFLAGS is better since adding to
it would mean it applies to  C and C++ compilers equally


> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


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

* Re: [meta-oe][PATCH] snappy: add -fPIC flags
  2018-08-28 16:45 ` Khem Raj
@ 2018-08-29  2:10   ` Dengke Du
  0 siblings, 0 replies; 3+ messages in thread
From: Dengke Du @ 2018-08-29  2:10 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel



On 2018年08月29日 00:45, Khem Raj wrote:
> On Tue, Aug 28, 2018 at 12:29 AM Dengke Du <dengke.du@windriver.com> wrote:
>> Let the libsnappy.a be position independent code, so other packages can use it
>> to make shared PIC library, such as ceph.
>>
>> Signed-off-by: Dengke Du <dengke.du@windriver.com>
>> ---
>>   meta-oe/recipes-extended/snappy/snappy_1.1.7.bb | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb b/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb
>> index 6f1978a..70223be 100644
>> --- a/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb
>> +++ b/meta-oe/recipes-extended/snappy/snappy_1.1.7.bb
>> @@ -19,3 +19,4 @@ inherit cmake pkgconfig
>>
>>   PACKAGECONFIG ??= ""
>>   PACKAGECONFIG[lzo] = "-DHAVE_LIBLZO2=1,-DHAVE_LIBLZO2=0,lzo,"
>> +TARGET_CFLAGS += "-fPIC"
> perhaps adding the -fPIC flag to CPPFLAGS is better since adding to
> it would mean it applies to  C and C++ compilers equally

Thanks!

>
>
>> --
>> 2.7.4
>>
>> --
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



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

end of thread, other threads:[~2018-08-29  2:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-28  7:39 [meta-oe][PATCH] snappy: add -fPIC flags Dengke Du
2018-08-28 16:45 ` Khem Raj
2018-08-29  2:10   ` Dengke Du

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.