[PATCH 1/1] Remove the mandatory -fPIC from CXXFLAGS
Thiago Macieira
thiago at macieira.org
Mon Apr 15 06:35:26 PDT 2013
On segunda-feira, 15 de abril de 2013 09.13.48, Tomaz Canabrava wrote:
> tomaz:subsurface/ (Qtâ) $
> make [9:02:30]
> CXX qt-gui.cpp
> In file included from /usr/include/qt5/QtGui/qwindowdefs.h:45:0,
> from /usr/include/qt5/QtWidgets/qwidget.h:45,
> from /usr/include/qt5/QtWidgets/qmainwindow.h:45,
> from /usr/include/qt5/QtWidgets/QMainWindow:1,
> from qt-ui/mainwindow.h:10,
> from qt-gui.cpp:27:
> /usr/include/qt5/QtCore/qglobal.h:1079:4: error: #error "You must build
> your code with position independent code if Qt was built with
> -reduce-relocations. " "Compile your code with -fPIC or -fPIE."
> # error "You must build your code with position independent code if Qt
> was built with -reduce-relocations. "\
> ^
> make: *** [qt-gui.o] Error 1
>
>
> Maybe the -fPIE detection is not working.
> I`m adding -fPIE mandatorily here in my build to get back hacking.
Ah, I changed the detection line too apparently.
From:
ifneq ($(findstring reduce_relocations, $(shell $(PKGCONFIG) --variable
qt_config $(QT_CORE))),)
To:
ifneq ($(filter reduce_relocations, $(shell $(PKGCONFIG) --variable qt_config
$(QT_CORE))), )
That ended up in a different commit here. Sorry about that. Does it work for
you?
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130415/1641049d/attachment.sig>
More information about the subsurface
mailing list