PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH=http://web.mit.edu/kerberos/dist/krb5/1.15/krb5-1.15.2.tar.gz MAKEDEPENDS=( "openssl-1.1.*:::*.h *.so *.so.*" ) # patch 001 comes from https://github.com/openwrt/packages/blob/master/net/krb5/patches/001-fix-uninitialized-warning-errors.patch PATCH_LIST=' 001-fix-uninitialized-warning-errors.patch 002-disable-rpc-unit-tests.patch 003-disable_doc_and_tests.diff ' # I have to force -lm and -ldl, otherwise: /usr/lib64/libdl.so.2: undefined reference to `_dl_catch_error@GLIBC_PRIVATE' # 003-disable_doc_and_tests.diff because tests didn't compile for me anyway (Fedora 29)... function do_config { cd src && \ # Sometimes, broken packages will need LD="$CC" CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" \ CPPFLAGS="" \ LDFLAGS="" \ LIBS="-lm -ldl" \ ./configure --with-size-optimizations --enable-option-checking --prefix=/usr --without-ldap --without-libedit --without-system-verto --without-readline --without-tcl --enable-dns-for-realm --disable-static --enable-shared --libdir="/usr/lib" } function do_compile_only { # without this, in unicode dir, ucdata.c and other files are searched in the current directory only cp src/lib/krb5/unicode/u*/*.{c,h} src/lib/krb5/unicode/ # parallel make $FLXPMAKE -C src LDFLAGS=-lm } function do_prepack { $FLXMAKE -C src DESTDIR=$ROOTDIR install set_default_perm $ROOTDIR }