File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ SCRIPT_VERSION=1.51
99CWD=$( pwd)
1010PACKAGES=" $CWD /packages"
1111WORKSPACE=" $CWD /workspace"
12- CFLAGS=" -I$WORKSPACE /include"
12+ CFLAGS=" -I$WORKSPACE /include -Wno-int-conversion "
1313LDFLAGS=" -L$WORKSPACE /lib"
1414LDEXEFLAGS=" "
1515EXTRALIBS=" -ldl -lpthread -lm -lz"
333333
334334if build " pkg-config" " 0.29.2" ; then
335335 download " https://pkgconfig.freedesktop.org/releases/pkg-config-$CURRENT_PACKAGE_VERSION .tar.gz"
336+ if [[ " $OSTYPE " == " darwin" * ]]; then
337+ export XXFLAGS=" -Wno-int-conversion" # pkg-config 0.29.2 has a warning that is treated as an error
338+ export CFLAGS=" -Wno-error=int-conversion"
339+ fi
336340 execute ./configure --silent --prefix=" ${WORKSPACE} " --with-pc-path=" ${WORKSPACE} " /lib/pkgconfig --with-internal-glib
337341 execute make -j $MJOBS
338342 execute make install
You can’t perform that action at this time.
0 commit comments