xorg-server: build with -fcommon -fPIC

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

View File

@ -61,8 +61,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"