libogre: fix musl
This commit is contained in:
parent
e13e98f98b
commit
9199c0ac1f
14
srcpkgs/libogre/patches/musl_str_l.patch
Normal file
14
srcpkgs/libogre/patches/musl_str_l.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- OgreMain/include/OgreString.h.orig 2018-04-17 09:04:05.425658306 +0200
|
||||
+++ OgreMain/include/OgreString.h 2018-04-17 09:14:39.457143961 +0200
|
||||
@@ -76,6 +76,11 @@ namespace __gnu_cxx
|
||||
# define strtol_l(ptr, end, base, l) strtol(ptr, end, base)
|
||||
#endif
|
||||
|
||||
+#if OGRE_PLATFORM == OGRE_PLATFORM_LINUX && !defined(__GLIBC__)
|
||||
+# define strtoul_l(ptr, end, base, l) strtoul(ptr, end, base)
|
||||
+# define strtol_l(ptr, end, base, l) strtol(ptr, end, base)
|
||||
+#endif
|
||||
+
|
||||
// If compiling with make on macOS, these headers need to be included to get
|
||||
// definitions of locale_t, strtod_l, etc...
|
||||
// See: http://www.unix.com/man-page/osx/3/strtod_l/
|
|
@ -24,10 +24,6 @@ make_build_target="all OgreDoc"
|
|||
wrksrc=ogre-$version
|
||||
|
||||
CXXFLAGS="-fcheck-new -fno-delete-null-pointer-checks -fno-lifetime-dse"
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) broken="https://build.voidlinux.eu/builders/x86_64-musl_builder/builds/9369/steps/shell_3/logs/stdio"
|
||||
esac
|
||||
|
||||
|
||||
post_install() {
|
||||
vmkdir /usr/share/doc
|
||||
|
|
Loading…
Reference in New Issue
Block a user