#2103: The view is shifted 50% to the left in many OpenGL apps on ati video
cards
--------------------------------------------+-------------------------------
Reporter: [EMAIL PROTECTED] | Owner: [EMAIL PROTECTED]
Type: task | Status: assigned
Priority: normal | Milestone: 6.2
Component: BOOK | Version: SVN
Severity: major | Resolution:
Keywords: |
--------------------------------------------+-------------------------------
Comment (by [EMAIL PROTECTED]):
Going to add -fno-strict-aliasing. I do agree with the use of linux-
dri-x86 since the book only supports x86 and it adds a few nice things on
top of the linux-dri target. Plus, anyone using a different arch following
the book should be able to figure out how to substitute the correct config
file. Here's the linux-dri-x86 config file:
{{{
# -*-makefile-*-
# Configuration for linux-dri: Linux DRI hardware drivers for XFree86 &
others
include $(TOP)/configs/linux-dri
CONFIG_NAME = linux-dri-x86
# Unnecessary on x86, generally.
PIC_FLAGS =
# Add -m32 to CFLAGS:
ARCH_FLAGS = -m32
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
ASM_SOURCES = $(X86_SOURCES)
ASM_API = $(X86_API)
}}}
However, although '-O2 -pipe' are very safe CFLAGS, we don't set the
optimization flags anywhere else in the book (that I know of). Instead,
I'm plan to add this sed:
{{{
sed -i 's/^OPT_FLAGS =.*/& -fno-strict-aliasing/' configs/linux-dri
}}}
Anyone who knows what they're doing can always override OPT_FLAGS at build
time.
Comments on the change from the linux-dri target to the linux-dri-x86
target and the above sed?
--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/2103>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page