summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-12-08 09:05:44 -0800
committerMike Morris <michael.patrick.morris@gmail.com>2014-12-09 12:09:22 -0500
commit538120bb7fb8ba739a58890ff6caf5202c05edc7 (patch)
tree5fe4aec0140f95fe6a6bef656d01461780a77d5c /utils
parentc61537af8fb0e6beaecebd4ce0989b838e0ce92a (diff)
downloadqtlocation-mapboxgl-538120bb7fb8ba739a58890ff6caf5202c05edc7.tar.gz
wrap mbgl-core and mbgl-linux in -Wl,--start-group/-Wl,--end-group
Diffstat (limited to 'utils')
-rw-r--r--utils/mbgl-config/mbgl-config.template.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/mbgl-config/mbgl-config.template.sh b/utils/mbgl-config/mbgl-config.template.sh
index 84fce43c10..89e28f64a8 100644
--- a/utils/mbgl-config/mbgl-config.template.sh
+++ b/utils/mbgl-config/mbgl-config.template.sh
@@ -24,6 +24,12 @@ if test $# -eq 0; then
usage 1
fi
+if [ ${CONFIG_MBGL_PLATFORM} == 'linux' ]; then
+ LIBS="-Wl,--start-group -lmbgl-core -lmbgl-${CONFIG_MBGL_PLATFORM} -Wl,--end-group -lmbgl-headless"
+else
+ LIBS="-lmbgl-core -lmbgl-${CONFIG_MBGL_PLATFORM} -lmbgl-headless"
+fi
+
while test $# -gt 0; do
case "$1" in
esac
@@ -43,7 +49,7 @@ while test $# -gt 0; do
;;
--libs)
- echo -L${CONFIG_MBGL_PREFIX}/lib -lmbgl-core -lmbgl-${CONFIG_MBGL_PLATFORM} -lmbgl-headless ${CONFIG_MBGL_LDFLAGS}
+ echo -L${CONFIG_MBGL_PREFIX}/lib ${LIBS} ${CONFIG_MBGL_LDFLAGS}
;;
--includedir)