gzdoom: fix build
This commit is contained in:
parent
c44766ade8
commit
291bb8d952
2 changed files with 15 additions and 0 deletions
13
srcpkgs/gzdoom/patches/fix-build.patch
Normal file
13
srcpkgs/gzdoom/patches/fix-build.patch
Normal 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 )
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue