Removing "unknown" in filenames when cross compiling

TP
Tom Paasuke
Wed, Jul 11, 2012 1:06 AM

Hi,

Not a major issue but I am cross-compiling PJSIP 2.0.1 and I want to remove the "unknown" labels in the many filenames and directories created during "make dep" and "make".

I am using:
./configure --host=arm-linux

This enables arm-linux-gcc compiler to be used instead of gcc and seems to compile and link ok when I run "make dep" and then "make".

For example, some final built application names are currently:
pjsua-arm-unknown-linux-gnu  (would prefer pjsua-arm-linux-gnu)
pjsystest-arm-unknown-linux-gnu (would prefer pjsystest-arm-linux-gnu)

As I said above, just a minor issue, as I can obviously rename them manually but is there some ./configure option that I can use to remove the "unknown" labels.  With ./configure I tried adding --target=arm-linux-gnu and --build=arm-linux-gnu but these seemed to have no effect.

Best Regards
Tom Paasuke

Hi, Not a major issue but I am cross-compiling PJSIP 2.0.1 and I want to remove the "unknown" labels in the many filenames and directories created during "make dep" and "make". I am using: ./configure --host=arm-linux This enables arm-linux-gcc compiler to be used instead of gcc and seems to compile and link ok when I run "make dep" and then "make". For example, some final built application names are currently: pjsua-arm-unknown-linux-gnu (would prefer pjsua-arm-linux-gnu) pjsystest-arm-unknown-linux-gnu (would prefer pjsystest-arm-linux-gnu) As I said above, just a minor issue, as I can obviously rename them manually but is there some ./configure option that I can use to remove the "unknown" labels. With ./configure I tried adding --target=arm-linux-gnu and --build=arm-linux-gnu but these seemed to have no effect. Best Regards Tom Paasuke
BP
Benny Prijono
Fri, Jul 13, 2012 12:59 PM

On Wed, Jul 11, 2012 at 8:06 AM, Tom Paasuke Tom.Paasuke@clearsonics.comwrote:

**

Hi,****


Not a major issue but I am cross-compiling PJSIP 2.0.1 and I want to
remove the “unknown” labels in the many filenames and directories created
during “make dep” and “make”.****


I am using:****

./configure --host=arm-linux ****


This enables arm-linux-gcc compiler to be used instead of gcc and seems to
compile and link ok when I run “make dep” and then “make”.****


For example, some final built application names are currently:****

pjsua-arm-unknown-linux-gnu  (would prefer pjsua-arm-linux-gnu)****

pjsystest-arm-unknown-linux-gnu (would prefer pjsystest-arm-linux-gnu)****


I think the name comes from config.guess script, so you can try hacking
this file and see what happens.

Cheers
Benny

On Wed, Jul 11, 2012 at 8:06 AM, Tom Paasuke <Tom.Paasuke@clearsonics.com>wrote: > ** > > Hi,**** > > ** ** > > Not a major issue but I am cross-compiling PJSIP 2.0.1 and I want to > remove the “unknown” labels in the many filenames and directories created > during “make dep” and “make”.**** > > ** ** > > I am using:**** > > ./configure --host=arm-linux **** > > ** ** > > This enables arm-linux-gcc compiler to be used instead of gcc and seems to > compile and link ok when I run “make dep” and then “make”.**** > > ** ** > > For example, some final built application names are currently:**** > > pjsua-arm-unknown-linux-gnu (would prefer pjsua-arm-linux-gnu)**** > > pjsystest-arm-unknown-linux-gnu (would prefer pjsystest-arm-linux-gnu)**** > > ** ** > > I think the name comes from config.guess script, so you can try hacking this file and see what happens. Cheers Benny
TP
Tom Paasuke
Thu, Jul 19, 2012 3:10 AM

Hi Benny,

Thanks for your response as it gave me an idea as to where to start looking.

It seems that config.guess is more to do with configuring the build system variables.

In my crosscompiling case, using ./configure --host=arm-linux , I found that I could remove the "unknown" in output filenames by modifying config.sub line 274 from:
basic_machine=$basic_machine-unknown
To:
basic_machine=$ basic_machine

The unknown field is sort of a placeholder for company name if it had existed and PJSIP seem to make OK without it.

Best Regards
Tom Paasuke


From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Benny Prijono
Sent: Friday, 13 July 2012 10:29 PM
To: pjsip list
Subject: Re: [pjsip] Removing "unknown" in filenames when cross compiling

On Wed, Jul 11, 2012 at 8:06 AM, Tom Paasuke <Tom.Paasuke@clearsonics.commailto:Tom.Paasuke@clearsonics.com> wrote:
Hi,

Not a major issue but I am cross-compiling PJSIP 2.0.1 and I want to remove the "unknown" labels in the many filenames and directories created during "make dep" and "make".

I am using:
./configure --host=arm-linux

This enables arm-linux-gcc compiler to be used instead of gcc and seems to compile and link ok when I run "make dep" and then "make".

For example, some final built application names are currently:
pjsua-arm-unknown-linux-gnu  (would prefer pjsua-arm-linux-gnu)
pjsystest-arm-unknown-linux-gnu (would prefer pjsystest-arm-linux-gnu)

I think the name comes from config.guess script, so you can try hacking this file and see what happens.

Cheers
Benny


No virus found in this message.
Checked by AVG - www.avg.comhttp://www.avg.com
Version: 2012.0.2195 / Virus Database: 2437/5137 - Release Date: 07/17/12

Hi Benny, Thanks for your response as it gave me an idea as to where to start looking. It seems that config.guess is more to do with configuring the build system variables. In my crosscompiling case, using ./configure --host=arm-linux , I found that I could remove the "unknown" in output filenames by modifying config.sub line 274 from: basic_machine=$basic_machine-unknown To: basic_machine=$ basic_machine The unknown field is sort of a placeholder for company name if it had existed and PJSIP seem to make OK without it. Best Regards Tom Paasuke ________________________________ From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Benny Prijono Sent: Friday, 13 July 2012 10:29 PM To: pjsip list Subject: Re: [pjsip] Removing "unknown" in filenames when cross compiling On Wed, Jul 11, 2012 at 8:06 AM, Tom Paasuke <Tom.Paasuke@clearsonics.com<mailto:Tom.Paasuke@clearsonics.com>> wrote: Hi, Not a major issue but I am cross-compiling PJSIP 2.0.1 and I want to remove the "unknown" labels in the many filenames and directories created during "make dep" and "make". I am using: ./configure --host=arm-linux This enables arm-linux-gcc compiler to be used instead of gcc and seems to compile and link ok when I run "make dep" and then "make". For example, some final built application names are currently: pjsua-arm-unknown-linux-gnu (would prefer pjsua-arm-linux-gnu) pjsystest-arm-unknown-linux-gnu (would prefer pjsystest-arm-linux-gnu) I think the name comes from config.guess script, so you can try hacking this file and see what happens. Cheers Benny ________________________________ No virus found in this message. Checked by AVG - www.avg.com<http://www.avg.com> Version: 2012.0.2195 / Virus Database: 2437/5137 - Release Date: 07/17/12