diff options
author | Evan Huus <eapache@gmail.com> | 2013-07-15 23:50:43 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-07-15 23:50:43 +0000 |
commit | 1c50729f9f4b5914c852d2bba337858f21307cf2 (patch) | |
tree | 20a146e9b4f949e930b021bfeb5f630eae3d2b2a | |
parent | 66f7521a172b24dd701149221ea429b7ea518724 (diff) |
Use PIE_CFLAGS when building qt-shark, since otherwise I get errors like:
/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."
There is almost certainly a better way to do this: I'm cheating here because I
don't know enough about autofoo, and it seems to work. I suspect we should be
checking PIE for the C++ compiler separately (since presumably they're not
guaranteed to be related like gcc/g++ are). I also suspect we should only be
building with it in the first place if Qt really needs it, though I have no idea
how to check that. The qt docs I've found suggest that qt5's cmake module has a
flag for it, but autofoo is never mentioned...
svn path=/trunk/; revision=50645
-rw-r--r-- | ui/qt/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/Makefile.am b/ui/qt/Makefile.am index 73b7b3a390..1f41f79b82 100644 --- a/ui/qt/Makefile.am +++ b/ui/qt/Makefile.am @@ -62,7 +62,7 @@ libqtui_a_CFLAGS = $(AM_CLEAN_CFLAGS) libqtui_a_DEPENDENCIES = # Common headers -AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap $(LIBGCRYPT_CFLAGS) $(LIBGNUTLS_CFLAGS) $(PORTAUDIO_INCLUDES) +AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap $(LIBGCRYPT_CFLAGS) $(LIBGNUTLS_CFLAGS) $(PORTAUDIO_INCLUDES) $(PIE_CFLAGS) AM_V_MOC = $(am__v_MOC_@AM_V@) am__v_MOC_ = $(am__v_MOC_@AM_DEFAULT_V@) |