Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.9.9, 5.12.8
-
None
-
solaris-g++-64 , solaris-g++
-
-
ca33e7a7406f2301883e0f6fdc382e8f8aa58b94 (qt/qtbase/dev)
Description
The commit 39fc377bf105ba09e2a8f9acae467dc789b96525 (updating specs for the platform mingw) has removed the default compiler flag -fPIC for gcc. That's affect the specs for the solaris platforms.
To succeed the build, I have to update specs as below:
--- a/qtbase/mkspecs/solaris-g++-64/qmake.conf
+++ b/qtbase/mkspecs/solaris-g++-64/qmake.conf
@@ -10,6 +10,7 @@ include(../common/solaris.conf)
{{ QMAKE_CFLAGS = -m64}}
{{ QMAKE_LFLAGS = -m64}}
+QMAKE_CFLAGS_PIC = -fPIC
{{ QMAKE_LIBDIR_X11 = /usr/X11/lib/64}}
{{ QMAKE_LIBDIR_OPENGL = /usr/X11/lib/64}}
--- a/qtbase/mkspecs/solaris-g++/qmake.conf
+++ b/qtbase/mkspecs/solaris-g++/qmake.conf
@@ -8,6 +8,8 @@ QMAKE_INCREMENTAL_STYLE = sublib
{{ include(../common/solaris.conf)}}
+QMAKE_CFLAGS_PIC = -fPIC
+
{{ QMAKE_LIBDIR_X11 = /usr/X11/lib}}
{{ QMAKE_LIBDIR_OPENGL = /usr/X11/lib}}
Please, could you include this fix for 5.9 and up. Thanks.