xwayland: build with -fcommon -fPIC

%ci:no-build
This commit is contained in:
Leonid Pliushch 2021-10-25 17:16:28 +03:00 committed by Yaksh Bariya
parent 1b018250e8
commit 02c7fde71b
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
LIBS=-landroid-shmem"
termux_step_pre_configure () {
CFLAGS+=" -DFNDELAY=O_NDELAY -Wno-int-to-pointer-cast"
CPPFLAGS+=" -I${TERMUX_PREFIX}/include/libdrm"
CFLAGS+=" -fcommon -fPIC -DFNDELAY=O_NDELAY -Wno-int-to-pointer-cast"
CPPFLAGS+=" -fcommon -fPIC -I${TERMUX_PREFIX}/include/libdrm"
if [ "${TERMUX_DEBUG_BUILD}" = "true" ]; then
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-debug"