* [Question]Remove $BUILDDIR from gcc -v
@ 2014-09-16 2:44 Bian, Naimeng
2014-09-16 7:21 ` Richard Purdie
0 siblings, 1 reply; 7+ messages in thread
From: Bian, Naimeng @ 2014-09-16 2:44 UTC (permalink / raw)
To: poky
Hi,
Any suggestion to remove the "$BUILDDIR" from "gcc -v".
Maybe the building option such as --with-libtool-sysroot is unnecessary
for toolchain. Thanks a million!
--------------------------------------------------------------------------------
#i586-poky-linux-gcc -v
Using built-in specs.
COLLECT_GCC=/opt/poky-lsb/1.4.2/sysroots/x86_64-pokysdk-linux/usr/bin/
i586-poky-linux/i586-poky-linux-gcc
COLLECT_LTO_WRAPPER=/opt/poky-lsb/1.4.2/...
Target: i586-poky-linux
Configured with: $BUILDDIR/tmp/work-shared/gcc-4.7.2-r20/gcc-4.7.2/configure \
--build=x86_64-linux --host=x86_64-pokysdk-linux --target=i586-poky-linux \
--prefix=/opt/poky-lsb/1.4.x/... \
--bindir=/opt/poky-lsb/1.4.x/... \
... ...
--with-libtool-sysroot=$BUILDDIR/tmp/sysroots/x86_64-nativesdk-pokysdk-linux \
--with-build-sysroot=$BUILDDIR tmp/sysroots/ubinux-qemux86 \
--with-mpfr=$BUILDDIR/tmp/sysroots/x86_64-nativesdk-pokysdk-linux \
--with-mpc=$BUILDDIR/tmp/sysroots/x86_64-nativesdk-pokysdk-linux \
... ...
--------------------------------------------------------------------------------
Regards,
Bian
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Question]Remove $BUILDDIR from gcc -v
2014-09-16 2:44 [Question]Remove $BUILDDIR from gcc -v Bian, Naimeng
@ 2014-09-16 7:21 ` Richard Purdie
2014-09-17 1:04 ` Bian, Naimeng
0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2014-09-16 7:21 UTC (permalink / raw)
To: Bian, Naimeng; +Cc: poky
On Tue, 2014-09-16 at 02:44 +0000, Bian, Naimeng wrote:
> Any suggestion to remove the "$BUILDDIR" from "gcc -v".
> Maybe the building option such as --with-libtool-sysroot is unnecessary
> for toolchain. Thanks a million!
>
> --------------------------------------------------------------------------------
> #i586-poky-linux-gcc -v
> Using built-in specs.
> COLLECT_GCC=/opt/poky-lsb/1.4.2/sysroots/x86_64-pokysdk-linux/usr/bin/
> i586-poky-linux/i586-poky-linux-gcc
> COLLECT_LTO_WRAPPER=/opt/poky-lsb/1.4.2/...
> Target: i586-poky-linux
> Configured with: $BUILDDIR/tmp/work-shared/gcc-4.7.2-r20/gcc-4.7.2/configure \
> --build=x86_64-linux --host=x86_64-pokysdk-linux --target=i586-poky-linux \
> --prefix=/opt/poky-lsb/1.4.x/... \
> --bindir=/opt/poky-lsb/1.4.x/... \
>
> ... ...
>
> --with-libtool-sysroot=$BUILDDIR/tmp/sysroots/x86_64-nativesdk-pokysdk-linux \
> --with-build-sysroot=$BUILDDIR tmp/sysroots/ubinux-qemux86 \
> --with-mpfr=$BUILDDIR/tmp/sysroots/x86_64-nativesdk-pokysdk-linux \
> --with-mpc=$BUILDDIR/tmp/sysroots/x86_64-nativesdk-pokysdk-linux \
> ... ...
> --------------------------------------------------------------------------------
These options are required. Why do you want to remove them?
Cheers,
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Question]Remove $BUILDDIR from gcc -v
2014-09-16 7:21 ` Richard Purdie
@ 2014-09-17 1:04 ` Bian, Naimeng
2014-09-18 7:32 ` Khem Raj
0 siblings, 1 reply; 7+ messages in thread
From: Bian, Naimeng @ 2014-09-17 1:04 UTC (permalink / raw)
To: Richard Purdie; +Cc: poky
Thanks for your answer.
Removing these options is not my purpose, i just want to hide the $BUILDDIR
such like following in my sdk.
- --with-mpfr=$BUILDDIR/tmp/sysroots/x86_64-nativesdk-pokysdk-linux
+ --with-mpfr=../../ tmp/sysroots/x86_64-nativesdk-pokysdk-linux
Regards,
Bian
> -----Original Message-----
> From: Richard Purdie [mailto:richard.purdie@linuxfoundation.org]
> Sent: Tuesday, September 16, 2014 3:21 PM
> To: Bian, Naimeng/卞 乃猛
> Cc: poky@yoctoproject.org
> Subject: Re: [poky] [Question]Remove $BUILDDIR from gcc -v
>
> On Tue, 2014-09-16 at 02:44 +0000, Bian, Naimeng wrote:
> > Any suggestion to remove the "$BUILDDIR" from "gcc -v".
> > Maybe the building option such as --with-libtool-sysroot is
> > unnecessary for toolchain. Thanks a million!
> >
> >
> ----------------------------------------------------------------------
> > ----------
> > #i586-poky-linux-gcc -v
> > Using built-in specs.
> >
> >
> COLLECT_GCC=/opt/poky-lsb/1.4.2/sysroots/x86_64-pokysdk-linux/usr/bin/
> > i586-poky-linux/i586-poky-linux-gcc
> > COLLECT_LTO_WRAPPER=/opt/poky-lsb/1.4.2/...
> > Target: i586-poky-linux
> > Configured with:
> $BUILDDIR/tmp/work-shared/gcc-4.7.2-r20/gcc-4.7.2/configure \
> > --build=x86_64-linux --host=x86_64-pokysdk-linux
> --target=i586-poky-linux \
> > --prefix=/opt/poky-lsb/1.4.x/... \
> > --bindir=/opt/poky-lsb/1.4.x/... \
> >
> > ... ...
> >
> >
> --with-libtool-sysroot=$BUILDDIR/tmp/sysroots/x86_64-nativesdk-pokysdk
> -linux \
> > --with-mpfr=$BUILDDIR/tmp/sysroots/x86_64-nativesdk-pokysdk-linux \
> > --with-mpc=$BUILDDIR/tmp/sysroots/x86_64-nativesdk-pokysdk-linux \
> > ... ...
> >
> ----------------------------------------------------------------------
> > ----------
>
> These options are required. Why do you want to remove them?
>
> Cheers,
>
> Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Question]Remove $BUILDDIR from gcc -v
2014-09-17 1:04 ` Bian, Naimeng
@ 2014-09-18 7:32 ` Khem Raj
2014-09-18 9:46 ` Bian, Naimeng
0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2014-09-18 7:32 UTC (permalink / raw)
To: poky
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 9/16/14 6:04 PM, Bian, Naimeng wrote:
> Removing these options is not my purpose, i just want to hide the $BUILDDIR
whats there in BUILDDIR to hide ?
- --
- -Khem
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org
iEYEARECAAYFAlQaiokACgkQuwUzVZGdMxQuBwCdHxUbnxYl3dmix82Ju/FFSpt9
H3cAn1dcyUie9q+x8WHt4/h87F+Uve6+
=FPZF
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Question]Remove $BUILDDIR from gcc -v
2014-09-18 7:32 ` Khem Raj
@ 2014-09-18 9:46 ` Bian, Naimeng
2014-09-26 3:29 ` Khem Raj
2014-09-26 11:06 ` Richard Purdie
0 siblings, 2 replies; 7+ messages in thread
From: Bian, Naimeng @ 2014-09-18 9:46 UTC (permalink / raw)
To: Khem Raj, poky
> > Removing these options is not my purpose, i just want to hide the $BUILDDIR
>
> whats there in BUILDDIR to hide ?
Thanks for your answer.
Well, maybe it's a strange case, but any suggestion it's helpful to me. ^_^
(I don't think there are some bugs of upstream's poky)
Of course, we can set BUILDDIR to a safe path such as /workspace,
but setting BUILDDIR to a secret path caused by a miss operation
will make a leakage of secret.
So, is there a method to change BUILDDIR to a relative path not a absolute path.
Looks like it's not easy. ^_^
Regards
Bian
> [mailto:poky-bounces@yoctoproject.org] On Behalf Of Khem Raj
> Sent: Thursday, September 18, 2014 3:32 PM
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
>
> On 9/16/14 6:04 PM, Bian, Naimeng wrote:
> > Removing these options is not my purpose, i just want to hide the $BUILDDIR
>
> whats there in BUILDDIR to hide ?
>
> - --
> - -Khem
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
> Comment: GPGTools - https://gpgtools.org
>
> iEYEARECAAYFAlQaiokACgkQuwUzVZGdMxQuBwCdHxUbnxYl3dmix82Ju/FFSpt9
> H3cAn1dcyUie9q+x8WHt4/h87F+Uve6+
> =FPZF
> -----END PGP SIGNATURE-----
> --
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Question]Remove $BUILDDIR from gcc -v
2014-09-18 9:46 ` Bian, Naimeng
@ 2014-09-26 3:29 ` Khem Raj
2014-09-26 11:06 ` Richard Purdie
1 sibling, 0 replies; 7+ messages in thread
From: Khem Raj @ 2014-09-26 3:29 UTC (permalink / raw)
To: Bian, Naimeng, poky
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 9/18/14 2:46 AM, Bian, Naimeng wrote:
> but setting BUILDDIR to a secret path caused by a miss operation
> will make a leakage of secret.
Thats quite interesting. Why cant you then build in a directory thats
not so _secret_
- --
- -Khem
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org
iEYEARECAAYFAlQk3YAACgkQuwUzVZGdMxR+eACcCST0l8lYw4+bnoPkEgRKTEgb
OasAnj7GEE/uccQODtkt+NJC2jfUGSmh
=GZkA
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Question]Remove $BUILDDIR from gcc -v
2014-09-18 9:46 ` Bian, Naimeng
2014-09-26 3:29 ` Khem Raj
@ 2014-09-26 11:06 ` Richard Purdie
1 sibling, 0 replies; 7+ messages in thread
From: Richard Purdie @ 2014-09-26 11:06 UTC (permalink / raw)
To: Bian, Naimeng; +Cc: poky
On Thu, 2014-09-18 at 09:46 +0000, Bian, Naimeng wrote:
> > > Removing these options is not my purpose, i just want to hide the $BUILDDIR
> >
> > whats there in BUILDDIR to hide ?
>
> Thanks for your answer.
>
> Well, maybe it's a strange case, but any suggestion it's helpful to me. ^_^
> (I don't think there are some bugs of upstream's poky)
>
> Of course, we can set BUILDDIR to a safe path such as /workspace,
> but setting BUILDDIR to a secret path caused by a miss operation
> will make a leakage of secret.
>
> So, is there a method to change BUILDDIR to a relative path not a absolute path.
> Looks like it's not easy. ^_^
I hate to break it to you but there are plenty of other ways the build
path can end up in the resulting binaries, even through things like
debug symbols/information. I'd suggest not putting "secret" information
in the build paths.
Cheers,
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-09-26 11:06 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-16 2:44 [Question]Remove $BUILDDIR from gcc -v Bian, Naimeng
2014-09-16 7:21 ` Richard Purdie
2014-09-17 1:04 ` Bian, Naimeng
2014-09-18 7:32 ` Khem Raj
2014-09-18 9:46 ` Bian, Naimeng
2014-09-26 3:29 ` Khem Raj
2014-09-26 11:06 ` Richard Purdie
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.