Add env to chroot

Gerard Beekmans gerard at
Sat Aug 5 18:45:18 PDT 2000

>    root:~# chroot /mnt env -i CFLAGS="-O3 --mcpu=xxx -march=yyy" \
>    > CXXFLAGS="-O3 -mcpu=xxx -march=yyy" bash --login
> Then you end up with an environment which contains just CFLAGS, CXXFLAGS
> plus the few variables set up by bash.

Interesting proposal. Let me test it and then add it to 2.4

Gerard Beekmans

-*- If Linux doesn't have the solution, you have the wrong problem -*-
Mail archive:
IRC access: server: port: 6667 channel: #LFS
Unsubscribe: email lfs-discuss-request at and put
"unsubscribe" (without the quotation marks) in the body of the message
(no subject is required)

More information about the lfs-dev mailing list