[PATCH 1/1] Remove the mandatory -fPIC from CXXFLAGS

Tomaz Canabrava tcanabrava at kde.org
Mon Apr 15 09:06:31 PDT 2013


ifneq ($(filter reduce_relocations, $(shell $(PKGCONFIG) --variable
qt_config
$(QT_CORE))), )

Same error.



2013/4/15 Thiago Macieira <thiago at macieira.org>

> 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
>
> _______________________________________________
> subsurface mailing list
> subsurface at hohndel.org
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130415/a805c5a6/attachment.html>


More information about the subsurface mailing list