Hi;

I tried building Mesa 6.4.2 on FreeBSD 6.0R-amd64 with the simple freebsd
target but it failed miserably:
____
...
mklib: Making FreeBSD shared library:  libGL.so.1
/usr/bin/ld: cannot find -lX11
mklib: Installing libGL.so.1 libGL.so in ../../lib
mv: rename libGL.so.1 to ../../lib/libGL.so.1: No such file or directory
gmake[1]: *** [../../lib/libGL.so] Error 1
______

So, I "learned" some things from the linux config and I got this conservative
patch (no PTHREADS, no TLS), which I think cleans up the build:

cheers,

    Pedro.

--- configs/freebsd.orig        Mon Aug 29 17:44:20 2005
+++ configs/freebsd     Thu Mar  2 12:09:13 2006
@@ -5,12 +5,24 @@
 CONFIG_NAME = FreeBSD
 
 # Compiler and flags
-CC = gcc
-CXX = g++
+CC = cc
+CXX = c++
 MAKE = gmake
 
-CFLAGS = -O2 -fPIC -pedantic -I/usr/X11R6/include -DUSE_XSHM -DHZ=100
-CXXFLAGS = -O2 -fPIC -pedantic
+OPT_FLAGS  = -O2
+PIC_FLAGS  = -fPIC
+
+DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -DUSE_XSHM
-DHZ=100
+
+X11_INCLUDES = -I/usr/X11R6/include
+
+CFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES)   \
+       $(X11_INCLUDES) -ffast-math -pedantic
+
+CXXFLAGS += $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES)         \
+       $(X11_INCLUDES)
+
 GLUT_CFLAGS = -fexceptions
 
-APP_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -l$(GLUT_LIB) -l$(GLU_LIB)
-l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm
+EXTRA_LIB_PATH = -L/usr/X11R6/lib
+APP_LIB_DEPS = -L$(LIB_DIR) $(EXTRA_LIB_PATH) -l$(GLUT_LIB) -l$(GLU_LIB)
-l$(GL_LIB) -lXext -lXmu -lXi -lX11 -lm





---
     Pedro F. Giffuni
     M. Sc. Industrial Eng. University of Pittsburgh
     Mech. Eng.      Universidad Nacional de Colombia
---
Yahoo is powered by FreeBSD    http://www.FreeBSD.org/


        

        
                
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to