http://bugzilla.rpmfusion.org/show_bug.cgi?id=151
--- Comment #21 from Orcan Ogetbil <orcanbahri(a)yahoo.com> 2008-12-16 03:07:48 ---
* You can drop BR: gcc-c++ as it is among the minimal build environment
packages (R: gcc-c++ should stay).
* The package still does not build with mock. But I found the main source of
the problem. From the build.log:
g++ -I. -I../../../src -Wall -DSC_INCLUDE_FX -g -c sc_stop_here.cpp
As you see neither %optflags nor -fPIC is passed to the compiler during the
compilation of this file. If you look at the
src/sysc/utils/Makefile.am
file you will see that
sc_stop_here.o: sc_stop_here.cpp
$(CXXCOMPILE_DEBUG) -c $<
so the $(CXXCOMPILE_DEBUG) variable must contain both %optflags and -fPIC. But
it is defined as (same file)
CXXCOMPILE_DEBUG = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
$(AM_CXXFLAGS) $(EXTRA_CXXFLAGS) $(DEBUG_CXXFLAGS)
Here, the OPT_CXXFLAGS is not passed to the CXXCOMPILE_DEBUG, hence the
compilation fails for x86_64.
There are various ways to fix this. I leave it up to you, but make sure that
both %optflags and -fPIC is passed to the compiler for the compilation of
sc_stop_here.cpp.
--
Configure bugmail:
http://bugzilla.rpmfusion.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.