This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trying to get crosstool-0.43 to work on Solaris 9




My fix was to not hardcode sh, and use the
env variable $SHELL in the crosstool scripts.
On Solaris, I had success with ksh as you did.
Actually, I think I defined the variable CONFIG_SHELL
in my version of the crosstool scripts, and
defined it in the config file.

That sounds like the right answer.

Patch attached.


You have to define CONFIG_SHELL to /bin/ksh in
your config file.

-David

--- crosstool.sh.old	Sun Jun 25 10:18:49 2006
+++ crosstool.sh	Sun Jun 25 10:22:31 2006
@@ -420,6 +420,7 @@
         # 'a version of binutils that supports .machine "altivec" is needed'.
         libc_cv_ppc_machine=yes \
         CC=gcc \
+	    ${CONFIG_SHELL} \
             ${GLIBC_DIR}/configure --prefix=/usr \
             --build=$BUILD --host=$TARGET \
             --without-cvs --disable-sanity-checks --with-headers=$HEADERDIR \
@@ -524,6 +525,7 @@
 
     BUILD_CC=gcc CFLAGS="$TARGET_CFLAGS $EXTRA_TARGET_CFLAGS" CC="${TARGET}-gcc $GLIBC_EXTRA_CC_ARGS" \
     AR=${TARGET}-ar RANLIB=${TARGET}-ranlib \
+	${CONFIG_SHELL} \
         ${GLIBC_DIR}/configure --prefix=/usr \
         --build=$BUILD --host=$TARGET \
         ${GLIBC_EXTRA_CONFIG} ${DEFAULT_GLIBC_EXTRA_CONFIG} \

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]