diff options
| author | Richard Purdie <richard@openedhand.com> | 2008-08-11 21:16:27 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2008-08-11 21:16:27 +0000 |
| commit | 449860be145d7769d52c36c5d243857e69ef4071 (patch) | |
| tree | 1490560add0d00ef4bae6602b630de041441e607 /meta/packages/mesa/mesa-7.0.2/fix-host-compile.patch | |
| parent | fc05d6187895a3b8e51ccb84e5232c6a40f44c46 (diff) | |
| download | poky-449860be145d7769d52c36c5d243857e69ef4071.tar.gz | |
mesa: Add from OE.dev
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5051 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/mesa/mesa-7.0.2/fix-host-compile.patch')
| -rw-r--r-- | meta/packages/mesa/mesa-7.0.2/fix-host-compile.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/packages/mesa/mesa-7.0.2/fix-host-compile.patch b/meta/packages/mesa/mesa-7.0.2/fix-host-compile.patch new file mode 100644 index 0000000000..d24d03d379 --- /dev/null +++ b/meta/packages/mesa/mesa-7.0.2/fix-host-compile.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | --- /src/mesa/x86/orig-Makefile 2005-07-01 04:54:38.000000000 +0300 | ||
| 2 | +++ /src/mesa/x86/Makefile 2007-06-07 21:52:31.000000000 +0300 | ||
| 3 | @@ -5,6 +5,7 @@ | ||
| 4 | |||
| 5 | |||
| 6 | INCLUDE_DIRS = \ | ||
| 7 | + -I/usr/include \ | ||
| 8 | -I$(TOP)/include/GL \ | ||
| 9 | -I$(TOP)/include \ | ||
| 10 | -I.. \ | ||
| 11 | @@ -13,6 +14,10 @@ | ||
| 12 | -I../glapi \ | ||
| 13 | -I../tnl | ||
| 14 | |||
| 15 | +OPT_FLAGS_host = -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os | ||
| 16 | + | ||
| 17 | +CFLAGS_host = -Wall -Wmissing-prototypes $(OPT_FLAGS_host) $(PIC_FLAGS) $(ARCH_FLAGS) \ | ||
| 18 | + $(DEFINES) $(ASM_FLAGS) $(X11_INCLUDES) -std=c99 -ffast-math | ||
| 19 | |||
| 20 | default: gen_matypes matypes.h | ||
| 21 | |||
| 22 | @@ -21,7 +26,7 @@ | ||
| 23 | |||
| 24 | |||
| 25 | gen_matypes: gen_matypes.c | ||
| 26 | - $(CC) $(INCLUDE_DIRS) $(CFLAGS) gen_matypes.c -o gen_matypes | ||
| 27 | + $(CC) $(INCLUDE_DIRS) $(CFLAGS_host) gen_matypes.c -o gen_matypes | ||
| 28 | |||
| 29 | # need some special rules here, unfortunately | ||
| 30 | matypes.h: ../main/mtypes.h ../tnl/t_context.h gen_matypes | ||
