Alexander,
    We would need to modify the section of sparky-py.patch with...
 
 CXX            = g++
-CXXFLAGS       = 
+CXXFLAGS       = -O3 -ffast-math -fPIC -fno-common -Wno-long-double
 CC             = gcc
-CFLAGS         =
+CFLAGS         = -O3 -ffast-math -fPIC -fno-common
 PYFLAGS                = -I$(PYTHON_INC) -I$(PYTHON_LIB)/config
 TKFLAGS                = -I$(TK_PREFIX)/include
-TKLIBS         = -L$(TK_PREFIX)/lib -l$(TK_LIBNAME) -l$(TCL_LIBNAME) -lX11
+TKLIBS         = -L$(TK_PREFIX)/lib -l$(TK_LIBNAME) -l$(TCL_LIBNAME) 
-L/usr/X11R6/lib -lX11

to allow [EMAIL PROTECTED]@/include and -L/sw/lib to be accessed. Assuming
that Apple's X11 and fink's xorg can't be installed at the same time I
suppose the following might work...

 CXX            = g++
-CXXFLAGS       =
+CXXFLAGS       = -O3 -ffast-math -fPIC -fno-common -Wno-long-double [EMAIL 
PROTECTED]@/include
 CC             = gcc
-CFLAGS         =
+CFLAGS         = -O3 -ffast-math -fPIC -fno-common
 PYFLAGS                = -I$(PYTHON_INC) -I$(PYTHON_LIB)/config
 TKFLAGS                = -I$(TK_PREFIX)/include
-TKLIBS         = -L$(TK_PREFIX)/lib -l$(TK_LIBNAME) -l$(TCL_LIBNAME) -lX11
+TKLIBS         = -L$(TK_PREFIX)/lib -l$(TK_LIBNAME) -l$(TCL_LIBNAME) 
-L/usr/X11R6/lib  [EMAIL PROTECTED]@/lib -lX11


Where does the xorg package install its libs? I haven't ever used it so I don't 
know if they
are in /sw/lib or /sw/X11R6/lib or what.
      Jack

On Mon, Jun 18, 2007 at 10:57:03AM -0400, Alexander Hansen wrote:
>    * OS 10.4.9
>    * G4
>    * Xcode 2.4.1
>    * xorg-6.8.2-1004
> 
> The package fails as follows under a non-Apple X11:
> ...
> g++ -O3 -ffast-math -fPIC -fno-common -Wno-long-double -I/sw/include
> -c /sw/src/fink.build/sparky-py25-3.112-1000/sparky/c++/winsystem-unix.cc
> In file included from
> /sw/src/fink.build/sparky-py25-3.112-1000/sparky/c++/winsystem-unix.cc:6:
> /sw/include/tk.h:83:23: error: X11/Xlib.h: No such file or directory
> ...
> I tried both of the following:
> 
> SetCPPFLAGS: -I/usr/X11R6/include
> SetCFLAGS: -I/usr/X11R6/include
> 
> but to no avail.
> 
> I've posted a full build log at
> 
> http://akhmac.blogdns.net/~hansen/finklogs/fink-build-log_sparky-py25-3.112-1000
> -- 
> Alexander K. Hansen
> akh AT finkproject DOT org
> Fink User Liaison and Documenter

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to