* [gentoo-embedded] Libraries and Cross-compiling with portage (follow-up)
@ 2006-09-25 11:07 Daniel Glaser
0 siblings, 0 replies; only message in thread
From: Daniel Glaser @ 2006-09-25 11:07 UTC (permalink / raw
To: gentoo-embedded
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
OK, solved the problem, need to insert
$ROOT/etc/portage/bashrc with following content:
do_usr_include() {
if ! hasq -I${ROOT}/usr/include ${CFLAGS}; then
export CFLAGS="${CFLAGS} -I${ROOT}/usr/include"
fi
}
do_lib() {
if ! hasq -L${ROOT}/lib ${LDFLAGS}; then
export LDFLAGS="${LDFLAGS} -L${ROOT}/lib"
fi
}
do_usr_lib() {
if ! hasq -L${ROOT}/usr/lib ${LDFLAGS}; then
export LDFLAGS="${LDFLAGS} -L${ROOT}/usr/lib"
fi
}
if [ "$PN" == "bash" ]; then
# https://bugs.gentoo.org/show_bug.cgi?id=135242
export ac_cv_func_setvbuf_reversed="no"
do_lib
do_usr_include
fi
unset do_lib do_usr_lib do_usr_include
But still encountering Problems with includes. When compiling openssl,
it breaks at including c_zlib.o because missing zlib.h.
It is in the new included Dir $ROOT/usr/include as zlib.h but still
not found.
This message is shown:
powerpc-somewhat-linux-gnu-gcc -I.. -I../.. -I../../include -fPIC
- -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT
- -DDSO_DLFCN -DHAVE_DLFCN_H -DB_ENDIAN -DTERMIO -Wall -Os -mcpu=405
- -mtune=405 -fomit-frame-pointer -pipe -fno-strict-aliasing
- -Wa,--noexecstack -c -o c_zlib.o c_zlib.c
c_zlib.c:25:18: error: zlib.h: No such file or directory
.....
Any suggestions?
For the time beeing I will try to find a solution...
Best,
themole
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFF7hdLA0LfkMzpGMRAs/8AJ47Wf8gUZbL4kOayt7aZie0Py5wwACfSD4l
G24xzgVFULiCFGXDpxit7CM=
=zV4I
-----END PGP SIGNATURE-----
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-09-25 11:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-25 11:07 [gentoo-embedded] Libraries and Cross-compiling with portage (follow-up) Daniel Glaser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox