Re: How to know target in makefile?

2008-06-17 Thread Guillem Jover
On Tue, 2008-06-17 at 13:50:04 +0300, ext Daniil Ivanov wrote:
> This command return you some useful output
> dpkg-architecture -qDEB_BUILD_GNU_TYPE

I think you mean DEB_HOST_GNU_TYPE. And I guess DEB_HOST_ARCH_CPU
would be more useful, but I agree it does not seem to make much sense
to have the SONAME change depending on the arch, if it's not actually
providing really specific arch functions?

regards,
guillem
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: How to know target in makefile?

2008-06-17 Thread Patrik Flykt

Hi,

On Tue, 2008-06-17 at 14:03 +0300, ext Patrik Flykt wrote:
> Ongelma vissiin ratkesi jo, mutta ihan mielenkiinnosta, miksi tuo
> arm/x86 -versio on nimetty/versioitu eri tavalla? Eikö sorsista
> käännetäkään yhtä samannimistä kirjastoa eri
> alustoille/arkkitehtuureille? Lähinnä mietin, ettei käyttämässäsi
> ympäristössä ole bugia tai jotain.

Ok, english summary needed: problem is hopefully solved, but just out of
curiosity I asked in which circumstances one ends up with differently
named/versioned libraries in the first place.

The mail was written in finnish, as I was to ask only Mikko because I
doubted all of maemo-devel would be interested - and then I forgot to
remove maemo-devel from CC: :-( My bad.

Apologies,

Patrik

-- 
Patrik Flykt <[EMAIL PROTECTED]>

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: How to know target in makefile?

2008-06-17 Thread Patrik Flykt

Moi,

On Tue, 2008-06-17 at 13:46 +0300, ext Mikko Mehtonen wrote:
> if x86
>   LIB = -lx86Version
> else
>   LIB = -larmVersion
> endif

Ongelma vissiin ratkesi jo, mutta ihan mielenkiinnosta, miksi tuo
arm/x86 -versio on nimetty/versioitu eri tavalla? Eikö sorsista
käännetäkään yhtä samannimistä kirjastoa eri
alustoille/arkkitehtuureille? Lähinnä mietin, ettei käyttämässäsi
ympäristössä ole bugia tai jotain.

T: PAtrik

-- 
Patrik Flykt <[EMAIL PROTECTED]>

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to know target in makefile?

2008-06-17 Thread Daniil Ivanov
Hello,

This command return you some useful output
dpkg-architecture -qDEB_BUILD_GNU_TYPE

Thanks, Daniil.

On Tue, Jun 17, 2008 at 1:46 PM, Mikko Mehtonen
<[EMAIL PROTECTED]> wrote:
> I have a library that I must link against and I need to select the right 
> version. I.e. something like this:
>
> if x86
>LIB = -lx86Version
> else
>LIB = -larmVersion
> endif
>
> Or is there some other way to achieve this?
>
> Mikko
>
> -Original Message-
> From: Santtu Lakkala [mailto:[EMAIL PROTECTED]
> Sent: 17. kesäkuuta 2008 13:39
> To: Mikko Mehtonen
> Cc: maemo-developers@maemo.org
> Subject: Re: How to know target in makefile?
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Mikko Mehtonen wrote:
>> Is there a way to know in Makefile which target we are building (arm
>> or x86)? There seems to be a variable $target in scratchbox, but it
>> isn't exported so it's not visible in Makefile.
>
> May I ask why do you need this information. Sbox is meant to be "transparent" 
> and the target name shouldn't make any difference.
>
> - --
> Santtu Lakkala
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIV5QnX9Rc0+po4p0RAs6fAJ9lK86FfkvpBKO4Wk606ayeSXv+iACgshtH
> Nshgvpg+6mCAYmaMdGUMTZg=
> =AboO
> -END PGP SIGNATURE-
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


RE: How to know target in makefile?

2008-06-17 Thread Mikko Mehtonen
I have a library that I must link against and I need to select the right 
version. I.e. something like this:

if x86
LIB = -lx86Version
else
LIB = -larmVersion
endif

Or is there some other way to achieve this?

Mikko

-Original Message-
From: Santtu Lakkala [mailto:[EMAIL PROTECTED] 
Sent: 17. kesäkuuta 2008 13:39
To: Mikko Mehtonen
Cc: maemo-developers@maemo.org
Subject: Re: How to know target in makefile?

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mikko Mehtonen wrote:
> Is there a way to know in Makefile which target we are building (arm 
> or x86)? There seems to be a variable $target in scratchbox, but it 
> isn't exported so it's not visible in Makefile.

May I ask why do you need this information. Sbox is meant to be "transparent" 
and the target name shouldn't make any difference.

- --
Santtu Lakkala

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIV5QnX9Rc0+po4p0RAs6fAJ9lK86FfkvpBKO4Wk606ayeSXv+iACgshtH
Nshgvpg+6mCAYmaMdGUMTZg=
=AboO
-END PGP SIGNATURE-
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to know target in makefile?

2008-06-17 Thread Santtu Lakkala
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mikko Mehtonen wrote:
> Is there a way to know in Makefile which target we are building (arm or
> x86)? There seems to be a variable $target in scratchbox, but it isn't
> exported so it's not visible in Makefile.

May I ask why do you need this information. Sbox is meant to be
"transparent" and the target name shouldn't make any difference.

- --
Santtu Lakkala

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIV5QnX9Rc0+po4p0RAs6fAJ9lK86FfkvpBKO4Wk606ayeSXv+iACgshtH
Nshgvpg+6mCAYmaMdGUMTZg=
=AboO
-END PGP SIGNATURE-
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers