openjdk + efivar: fix build

Avoid error because of readdir_r() being deprecated now.
Closes #4648
This commit is contained in:
Juergen Buchmueller 2016-08-21 21:53:08 +02:00
parent fc8d44c828
commit 2b26443011
2 changed files with 4 additions and 0 deletions

View file

@ -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/"

View file

@ -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/}