linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Cross compiling bash
@ 2001-03-05 19:58 Bruno R. Barreyra
  2001-03-06 10:52 ` Magnus Damm
  0 siblings, 1 reply; 2+ messages in thread
From: Bruno R. Barreyra @ 2001-03-05 19:58 UTC (permalink / raw)
  To: linuxppc-embedded


How does one cross-compile bash?

When I run configure on the 2.0.4 source, it complains on getpgrp,
saying that it can't check it if we are cross-compiling, and I haven't
been able to get around that yet. Can anyone help me?

--
[]'s Bruno Renato Barreyra
bruno.r.barreyra@ufl.edu
barreyra@ufl.edu


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: Cross compiling bash
  2001-03-05 19:58 Cross compiling bash Bruno R. Barreyra
@ 2001-03-06 10:52 ` Magnus Damm
  0 siblings, 0 replies; 2+ messages in thread
From: Magnus Damm @ 2001-03-06 10:52 UTC (permalink / raw)
  To: Bruno R. Barreyra; +Cc: linuxppc-embedded


> How does one cross-compile bash?

I have successfully cross-compiled many applications
on my x86 host.

First you need a cross-compiled libc.
Then you need to tell "configure" some things
to make it use your compiler/libc.
You also might need to pass other configuration values
that are impossible to autodetect if crossc-ompiling.

I use a wrapper around configure to pass some values to it.
Here are some values from my wrapper, some might not be needed
for bash, but maybe for other packages..

some bash specific variables:

export bash_cv_func_sigsetjmp=present
export bash_cv_job_control_missing=present
export bash_cv_sys_named_pipes=present
export bash_cv_sys_siglist=yes
export bash_cv_ulimit_maxfds=yes
export bash_cv_under_sys_siglist=yes
export bash_cv_type_rlimit=long

and some powerpc specific stuff:

export ac_cv_c_bigendian=yes
export ac_cv_c_char_unsigned=no
export ac_cv_sizeof_long_long=8
export ac_cv_sizeof_long=4
export ac_cv_sizeof_int=4
export ac_cv_sizeof_short=2
export ac_cv_sizeof_unsigned_long=4
export ac_cv_sizeof_unsigned_int=4

I also export the following variables from my wrapper:
They pretty much depend on what you compile for and where
your compiler is, you'll have to figure out them yourself.

export CC CXX CFLAGS CPP LDFLAGS AR RANLIB HOSTCC HOST_CC BUILD_CC

I have a patch for bash-2.04 that makes it possible to crosscompile.
But it is too big to be sent to this public list.

Ask nice and I will send it to you.. =)

Cheers /

Magnus

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2001-03-06 10:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-05 19:58 Cross compiling bash Bruno R. Barreyra
2001-03-06 10:52 ` Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).