banned option --as-needed from LDFLAGS

This commit is contained in:
Devaev Maxim
2021-01-13 17:45:33 +03:00
parent 2f1afb6044
commit 3fd3aab909

View File

@@ -25,6 +25,10 @@ build() {
local _options="WITH_GPIO=1"
[ -e /opt/vc/include/IL/OMX_Core.h ] && _options="$_options WITH_OMX=1"
# LD does not link mmal with this option
LDFLAGS="${LDFLAGS//--as-needed/}"
LDFLAGS="${LDFLAGS//,,/,}"
make $_options CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" $MAKEFLAGS
}