http://bugs.freedesktop.org/show_bug.cgi?id=18231
Summary: configure.ac needs improvements for kfreebsd
Product: Mesa
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Currently mesa's configure script sets different DEFINES on linux vs other OS.
This leads to build failures on e.g. kfreebsd because _BSD_SOURCE isn't
defined:
http://buildd.debian-ports.org/fetch.php?&pkg=mesa&ver=7.2-1&arch=kfreebsd-amd64&stamp=1223064297&file=log&as=raw
The settings should probably be unified somewhat. kfreebsd* also needs to be
added to the tests for $enable_asm
relevant config diff between linux-i386 and kfreebsd-i386:
@@ -11,9 +11,9 @@
CXX = g++
OPT_FLAGS =
ARCH_FLAGS =
-ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
+ASM_FLAGS =
PIC_FLAGS = -fPIC
-DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE
-D_SVID_SOUR
CE -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_XSHM
+DEFINES = -DHAVE_POSIX_MEMALIGN -DUSE_XSHM
CFLAGS = -Wall -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math
-fno-str
ict-aliasing \
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
CXXFLAGS = -g -O2 -Wall -fno-strict-aliasing \
@@ -22,8 +22,8 @@
EXTRA_LIB_PATH =
# Assembler
-ASM_SOURCES = $(X86_SOURCES)
-ASM_API = $(X86_API)
+ASM_SOURCES =
+ASM_API =
# Misc tools and flags
MAKE = make
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev