void-packages/srcpkgs/gzdoom/patches/fix-build.patch

14 lines
467 B
Diff
Raw Normal View History

2022-09-04 17:14:43 +02:00
--- 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 )