summaryrefslogtreecommitdiff
path: root/utils/mbgl-config/mbgl-config.template.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/mbgl-config/mbgl-config.template.sh')
-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)