gzdoom: fix build

This commit is contained in:
Đoàn Trần Công Danh 2022-09-04 22:14:43 +07:00
parent c44766ade8
commit 291bb8d952
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,13 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -276,7 +276,9 @@ else()
include ( FindPkgConfig )
pkg_check_modules( MUSL_FTS musl-fts )
if ( MUSL_FTS_FOUND )
- set ( ALL_C_FLAGS "${ALL_C_FLAGS} ${MUSL_FTS_LDFLAGS}" )
+ foreach(flags IN LISTS MUSL_FTS_LDFLAGS)
+ set ( ALL_C_FLAGS "${ALL_C_FLAGS} ${flags}" )
+ endforeach()
else ( MUSL_FTS_FOUND )
message (ERROR "fts_* functions not found in the system" )
endif ( MUSL_FTS_FOUND )

View file

@ -20,6 +20,8 @@ checksum="454257582be0576501eef1efc99fe7ea70f1c4d7993549db3cbc709ce75fc102
skip_extraction="${pkgname}_${version}_amd64.deb"
nocross=yes
CXXFLAGS=-std=gnu++11
if [ "$XBPS_TARGET_LIBC" = musl ]; then
makedepends+=" musl-fts-devel libexecinfo-devel"
fi