openjdk + efivar: fix build
Avoid error because of readdir_r() being deprecated now. Closes #4648
This commit is contained in:
@@ -11,6 +11,8 @@ only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
||||
distfiles="https://github.com/rhinstaller/efivar/releases/download/${version}/efivar-${version}.tar.bz2"
|
||||
checksum=04b9b9de9d9a1a013395400438a033daf4a4290f497ec5be04a120e2ac535094
|
||||
|
||||
CFLAGS="-Wno-error=deprecated-declarations"
|
||||
|
||||
do_build() {
|
||||
sed 's|-rpath=$(TOPDIR)/src/|-rpath=$(libdir)|g' -i src/test/Makefile
|
||||
make CC=$CC libdir="/usr/lib/"
|
||||
|
||||
@@ -128,6 +128,8 @@ alternatives="
|
||||
jdk:/usr/bin/xjc:/usr/lib/jvm/openjdk/bin/xjc
|
||||
"
|
||||
|
||||
CFLAGS="-Wno-error=deprecated-declarations"
|
||||
|
||||
do_build() {
|
||||
# -D_FORTIFY_SOURCE=2 doesn't work with CXX_O_FLAG_NONE="-O0"
|
||||
CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/}
|
||||
|
||||
Reference in New Issue
Block a user