Kris Kennaway <[EMAIL PROTECTED]> wrote:
> > I got around this problem by (indirectly) fixing the ".c.o" rule
> > in the Imakefile. This patch was part of my previous mail to you
> > regarding the XFree86 library build process (new version of patch-z32).
> 
> Thanks for looking into this; I'd appreciate it if someone could
> commit a fix, but the patch below is suboptimal because it affects all
> versions of FreeBSD.  Can you modify it so it only disables
> optimization on (recent) 5.0?

Here is one example of new ports/x11/XFree86-4-libraries/files/patch-z32c.

--
------------------------------------------------------------------------
Motoyuki Konno                  [EMAIL PROTECTED]             (Home)
                                [EMAIL PROTECTED]  (FreeBSD Project)
                                http://www.freebsd.org/~motoyuki/ (WWW)
--
--- lib/GL/mesa/src/OSmesa/Imakefile.orig       Tue Jun  5 05:43:30 2001
+++ lib/GL/mesa/src/OSmesa/Imakefile    Fri Jun 21 18:21:25 2002
@@ -8,6 +8,19 @@
 #define DoDebugLib DebugLibGlx
 #define DoProfileLib ProfileLibGlx
 
+#if defined(FreeBSDArchitecture) && (OSMajorVersion >= 5)
+
+#define LibObjCompile(dir,options) RemoveFiles($@ $(@:C!([^/]+)$!dir/\1!)) @@\
+       ClearmakeOSName \
+       $(CC) -c $(CCOPTIONS) $(THREADS_CFLAGS) $(ALLDEFINES) \
+       options $*.c -o $(@:C!([^/]+)$!dir/\1!)
+
+#define ObjectCompile(options) RemoveFile($@) @@\
+       ClearmakeOSName \
+       $(CC) -c $(CFLAGS) options -O0 $*.c -o $@
+
+#endif
+
 #include "../Imakefile.inc"
 #ifdef i386Architecture
 #include "../X86/Imakefile.inc"
@@ -58,7 +71,7 @@
 LIBNAME = OSMesa
 SOREV = 3.3
 
-
+#if !defined(LibInstall) || LibInstall || (!defined(ModInstall) || ModInstall)
 #if DoNormalLib
 NormalLibraryTarget($(LIBNAME), $(UOBJS))
 InstallLibrary($(LIBNAME),$(USRLIBDIR))
@@ -77,6 +90,7 @@
 #if DoProfileLib
 ProfiledLibraryTarget($(LIBNAME), $(POBJS))
 InstallLibrary($(LIBNAME)_p,$(USRLIBDIR))
+#endif
 #endif
 
 DependTarget()


Reply via email to