pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/34728: scons blender SUNPRO vs gcc ar



>Number:         34728
>Category:       pkg
>Synopsis:       scons blender SUNPRO vs gcc ar
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 06 08:50:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


blander use scons to configure
the file scons-0.96.1/engine/SCons/Tool/sunar.py is wrong for gcc


>How-To-Repeat:


bmake in blender


>Fix:


This first fix is maybe correct for scons with SUNPRO and gcc:

--- engine/SCons/Tool/sunar.py.orig     Mon Aug 23 16:56:13 2004
+++ engine/SCons/Tool/sunar.py  Fri Oct  6 10:31:03 2006
@@ -42,14 +42,9 @@
     """Add Builders and construction variables for ar to an Environment."""
     SCons.Tool.createStaticLibBuilder(env)
     
-    if env.Detect('CC'):
-        env['AR']          = 'CC'
-        env['ARFLAGS']     = SCons.Util.CLVar('-xar')
-        env['ARCOM']       = '$AR $ARFLAGS -o $TARGET $SOURCES'
-    else:
-        env['AR']          = 'ar'
-        env['ARFLAGS']     = SCons.Util.CLVar('r')
-        env['ARCOM']       = '$AR $ARFLAGS $TARGET $SOURCES'
+    env['AR']          = 'ar'
+    env['ARFLAGS']     = SCons.Util.CLVar('r')
+    env['ARCOM']       = '$AR $ARFLAGS $TARGET $SOURCES'
 
     env['SHLINK']      = '$LINK'
     env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS -G')






Home | Main Index | Thread Index | Old Index