Bug 217278 - devel/qt5: doesn't respect CXXFLAGS
Summary: devel/qt5: doesn't respect CXXFLAGS
Status: Closed DUPLICATE of bug 216816
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Many People
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-21 17:22 UTC by Mikael Urankar
Modified: 2017-02-28 08:21 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (kde)


Attachments
patch (1.70 KB, patch)
2017-02-21 17:22 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Urankar freebsd_committer freebsd_triage 2017-02-21 17:22:58 UTC
Created attachment 180196 [details]
patch

I'm building qt5 for armv7 with CXXFLAGS+=-mcpu=cortex-a7 and qt5 doesn't respect it.
The result is that x11-toolkits/qt5-gui fails to build (missing neon feature):

Build type:    /usr/local/lib/qt5/mkspecs/freebsd-clang (arm, CPU features: none detected)
 
snip

image/qimage.cpp:(.text+0x1e14): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)'
image/qimage.cpp:(.text+0x1f34): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qimage_conversions.o:(.data+0x524): undefined reference to `convert_RGB888_to_RGB32_neon(QImageData*, QImageData const*, QFlags<Qt::ImageConversionFlag>)'
.obj/qimage_conversions.o:(.data+0x528): undefined reference to `convert_RGB888_to_RGB32_neon(QImageData*, QImageData const*, QFlags<Qt::ImageConversionFlag>)'
.obj/qimage_conversions.o:(.data+0x52c): undefined reference to `convert_RGB888_to_RGB32_neon(QImageData*, QImageData const*, QFlags<Qt::ImageConversionFlag>)'
.obj/qcompositionfunctions.o: In function `comp_func_solid_Clear(unsigned int*, int, unsigned int, unsigned int)':
painting/qcompositionfunctions.cpp:(.text+0x1c): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qcompositionfunctions.o: In function `comp_func_Clear(unsigned int*, unsigned int const*, int, unsigned int)':
painting/qcompositionfunctions.cpp:(.text+0x2ac): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qcompositionfunctions.o: In function `comp_func_solid_Source(unsigned int*, int, unsigned int, unsigned int)':
painting/qcompositionfunctions.cpp:(.text+0x548): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qcompositionfunctions.o: In function `comp_func_solid_SourceOver(unsigned int*, int, unsigned int, unsigned int)':
painting/qcompositionfunctions.cpp:(.text+0xc48): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qcompositionfunctions.o: In function `rasterop_solid_NotSource(unsigned int*, int, unsigned int, unsigned int)':
painting/qcompositionfunctions.cpp:(.text+0x10eec): undefined reference to `qt_memfill32(unsigned int*, unsigned int, int)'
.obj/qcompositionfunctions.o:painting/qcompositionfunctions.cpp:(.text+0x113e0): more undefined references to `qt_memfill32(unsigned int*, unsigned int, int)' follow
.obj/qdrawhelper.o: In function `_GLOBAL__sub_I_qdrawhelper.cpp':
painting/qdrawhelper.cpp:(.text+0x17b48): undefined reference to `qt_blend_argb32_on_argb32_neon(unsigned char*, int, unsigned char const*, int, int, int, int)'
painting/qdrawhelper.cpp:(.text+0x17b4c): undefined reference to `qt_alphamapblit_quint16_neon(QRasterBuffer*, int, int, QRgba64 const&, unsigned char const*, int, int, int, QClipData const*)'

The attached patch fixes the issue, obtained from mmel@
Comment 1 Mikael Urankar freebsd_committer freebsd_triage 2017-02-28 08:21:09 UTC

*** This bug has been marked as a duplicate of bug 216816 ***