]> granicus.if.org Git - graphviz/commitdiff
add -fPIE -fPIC to CPPFLAGS for QT
authorJohn Ellson <john.ellson@comcast.net>
Wed, 4 Jul 2018 18:38:39 +0000 (14:38 -0400)
committerJohn Ellson <john.ellson@comcast.net>
Wed, 4 Jul 2018 18:38:39 +0000 (14:38 -0400)
configure.ac

index 37e459b3c7d1d42a1c2b6bee32879740a288a839..9941564da315b65d7107d05ae16e22d353b13707 100644 (file)
@@ -2336,6 +2336,8 @@ else
   if test "$QMAKE" != "false"; then
     PKG_CHECK_MODULES(QTCORE, [Qt5Core],[
       PKG_CHECK_MODULES(QTGUI, [Qt5Widgets Qt5PrintSupport],[
+  # required for linking with QT
+  CPPFLAGS="${CPPFLAGS} -fPIE -fPIC"
        use_qt="Yes"
       ],[
         use_qt="No (QtGui not available)"