Since
bfb326f6e ("nettle: plumb RSA-OAEP in the Nettle crypto backend"),
building gnutls statically fails due to a duplicate definition of
nettle_rsa_compute_root_tr (which comes from "rsa_compute_root_tr" being
replaced by a preprocessor macro).
This patch fixes this by renaming the GNUTLS version by redefining the
value of the rsa_compute_root_tr macro.
Signed-off-by: Alyssa Ross <hi@alyssa.is>
sed \
-e '/^#include <nettle\/nettle-types\.h>/a\
#include "block8.h"
+' \
+ $dst > $dst-t && mv $dst-t $dst
+ ;;
+ esac
+ case $dst in
+ */rsa-sign-tr.c)
+ sed \
+ -e '/^#include <nettle\/rsa\.h>/i\
+#define nettle_rsa_compute_root_tr _gnutls_nettle_backport_rsa_compute_root_tr\
' \
$dst > $dst-t && mv $dst-t $dst
;;