-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Jennings schreef:
| On Tuesday, 18 March 2008, at 18:49:11 (+0100),
| Koen Kooi wrote:
|
|> It's not about redefining $(includedir), it's about this situation:
|>
|> arm-angstrom-linuxgnueabi-gcc something-doing-math.c -I/usr/include
|> - -I/data/cross/arm/usr/include -o foo
|>
|> something-doing-math.c looks something like:
|>
|> ..
|> #include <optimized-header.h>
|> ..
|>
|> The build will pick up the mmx version of the header from /usr/include
|> (assuming you build on an intel system) and the compiler will choke on
|> strange asm and datasizes.
|
| Only if you fail to redefine $(includedir).  If $(includedir) were set
| to, say, /data/cross/arm/usr/include instead, it would work fine.
|
|> Redefining ${includedir} won't help, since you want the software to end
|> up in ${prefix} on the target when installing the package.
|
| It will help, insofar as the problem you mention above won't occur.
|
| If we don't include stuff in $(includedir), what is the appropriate
| method for people who use, for example, --prefix=/opt/e17 to make sure
| that /opt/e17/include/*.h gets picked up?  Up until now, that was
| handled automatically by the stuff you all just nuked. :)

If you do builds like that you probably already pass in -isystem via
CFLAGS and/or use gcc sysroot and/or use pkgconfig sysroot and/or plain
pkgconfig. It is way easier to add something to CFLAGS or to ./configure
- --with-foo-incloudes=/bar/qipl than to *remove* bogus assumptions.

And redefining ${includedir} means that I get headers installed to
/crazy/crossbuild/path/of/my/buildmachine/user/include on my *target
device* instead of /usr/include where I want them.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFH4AtIMkyGM64RGpERAmusAKCmrv5KTsOapTqf/s8tMMxzP1TnSwCdGKWb
hY91COrqz3jIs+zRMdbDH24=
=IMQ8
-----END PGP SIGNATURE-----


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to