http://bugs.freedesktop.org/show_bug.cgi?id=11771
------- Comment #2 from [EMAIL PROTECTED] 2007-07-30 06:57 PST -------
Hmm, it seems to be a problem with the gcc with the sun assembler and
the mesa assembler file. (I tested it with gcc 3.4.4, too)
I tested sunos5-v9 with the sun cc and CC version (
cc: Forte Developer 7 C 5.4 2002/03/09)
and it compiles. Because I build software that use g++ 4.x.x, I can build the
c-files with the sun cc (Forte Developer 7 C 5.4 2002/03/09) and the c++
files with g++.
=> I wrote a new config sunos5-v9-cc-g++
The config sunos5-v9-cc-g++ file contains:
# Configuration for SunOS 5, SPARC V9 and g++
include $(TOP)/configs/default
CONFIG_NAME = sunos5-v9
MKLIB_OPTIONS = -cplusplus
LIB_DIR = lib64
# Compiler and flags
CC = cc
CXX = g++
CXX_WARN_FLAGS = -Wall
CXX_PIC_FLAGS = -fPIC
CXX_OPT_FLAGS = -O3 -m64 -mcpu=ultrasparc -mv8plus -mvis -g
-fomit-frame-pointer -pipe
CXX_ARCH_FLAGS = -m64
CXXFLAGS = $(CXX_WARN_FLAGS) $(CXX_OPT_FLAGS) $(CXX_PIC_FLAGS)
$(CXX_ARCH_FLAGS) $(DEFINES) \
-I/usr/openwin/include
CFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include -DUSE_XSHM
-DPTHREADS
#CXXFLAGS = -xarch=v9 -KPIC -O -I/usr/openwin/include -I/usr/dt/include
-DPTHREADS
GLUT_CFLAGS = -DSOLARIS_2_4_BUG
GL_LIB_DEPS = -L/usr/openwin/lib -L/usr/dt/lib -lX11 -lXext -lXmu -lXi -lm
-lpthread
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm -lCstd -lCrun
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L/usr/openwin/lib -lXt -lX11
APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lX11 -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB)
-lm
adding the line sunos5-v9-cc-g++ \ to the main Makefile line 154
and set the LD_LIBRARY_PATH to find the compiler libs for g++ and cc
compiles everything fine.
Of course SHELL = /bin/ksh in the main Makefile is always needed for solaris.
For the demo programs I had to add some $(CFLAGS) but it seems to be fine.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev