summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAdam Mitz <mitza@ociweb.com>2018-09-14 16:48:03 -0500
committerAdam Mitz <mitza@ociweb.com>2018-09-14 16:48:03 -0500
commitd7a016d95667eef10badf3ecc88834b124348734 (patch)
tree3676947231f4384b977156b4247283d191763075 /config
parentb916f1237890241074dc8c313cf9be323b07b575 (diff)
downloadMPC-d7a016d95667eef10badf3ecc88834b124348734.tar.gz
qt5 with -type gnuace: provide workaround in case no PIC flag is defined (such as static_libs_only)
Diffstat (limited to 'config')
-rw-r--r--config/qt5_core.mpb3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/qt5_core.mpb b/config/qt5_core.mpb
index 08506084..2f8aca74 100644
--- a/config/qt5_core.mpb
+++ b/config/qt5_core.mpb
@@ -26,7 +26,7 @@ project {
// On Linux at least, Qt5 by default requires position independent code
specific (gnuace) {
- compile_flags += $(PIC)
+ compile_flags += $(if $(PIC),$(PIC),-fPIC)
}
specific (prop:microsoft) {
@@ -65,4 +65,3 @@ project {
source_outputext = .cpp
}
}
-