Wireshark-commits: [Wireshark-commits] rev 50645: /trunk/ui/qt/ /trunk/ui/qt/: Makefile.am

Date: Mon, 15 Jul 2013 23:50:43 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=50645

User: eapache
Date: 2013/07/15 04:50 PM

Log:
 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...

Directory: /trunk/ui/qt/
  Changes    Path           Action
  +1 -1      Makefile.am    Modified