Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2007 22:28:07 +0300 (MSK)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/109639: graphics/gsculpt: doesn't respect CXX/CXXFLAGS
Message-ID:  <20070227192807.6BF584099@hades.panopticon>
Resent-Message-ID: <200702271930.l1RJU6SN043136@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         109639
>Category:       ports
>Synopsis:       graphics/gsculpt: doesn't respect CXX/CXXFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 27 19:30:06 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 6.1-RELEASE-p12 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 6.1-RELEASE-p12 FreeBSD 6.1-RELEASE-p12 #0: Tue Jan 16 23:12:21 MSK 2007 amdmi3@hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
% cd /usr/ports/graphics/gsculpt && make
...
===>  Building for gsculpt-0.99.38.2
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o cpp/CompGeometry/PolyTesselate.os -c -Wall -Werror -ffast-math -g -DGS_DllExport= -DGSCULPT_PLATFORM_POSIX -DGSCULPT_FPU_X86 -fPIC -Icpp -I/usr/local/include/python2.4 -I/usr/local/include -I/usr/X11R6/include cpp/CompGeometry/PolyTesselate.cpp

while system compiler setting (${CXX} == c++) and flags (${CXXFLAGS} == -O2 -pipe -march=...) should be respected

>How-To-Repeat:
cd /usr/ports/graphics/gsculpt && CXX=yourcompiler CXXFLAGS=yourflags make
>Fix:
Not a fix, but just a hint: you may modify software's SConstruct like that:

env = Environment(**ARGUMENTS)

thus, all systemwide settings (CC/CXX/CFLAGS/CXXFLAGS and more), passed to scons automatically by ports collection (see ports/Mk/bsd.scons.mk) via SCONS_ENV will be understood by scons and imported into it's build environment.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070227192807.6BF584099>