Commit f567e383 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Upgraded libffi to 3.3

parent 189adb81
all: all:
tar xf libffi-3.2.1.tar.gz tar xf libffi-3.3.tar.gz
patch -Np1 -d libffi-3.2.1 < libffi-3.2.1-henderson.patch cd libffi-3.3 && sed -e '/^includesdir/ s/$$(libdir).*$$/$$(includedir)/' -i include/Makefile.in
cd libffi-3.2.1 && sed -e '/^includesdir/ s/$$(libdir).*$$/$$(includedir)/' -i include/Makefile.in cd libffi-3.3 && sed -e '/^includedir/ s/=.*$$/=@includedir@/' -e 's/^Cflags: -I$${includedir}/Cflags:/' -i libffi.pc.in
cd libffi-3.2.1 && sed -e '/^includedir/ s/=.*$$/=@includedir@/' -e 's/^Cflags: -I$${includedir}/Cflags:/' -i libffi.pc.in cd libffi-3.3 && ./configure --build=$(CLFS_TARGET) --prefix=/usr --disable-static
cd libffi-3.2.1 && ./configure --build=$(CLFS_TARGET) --prefix=/usr --disable-static $(MAKE) -C libffi-3.3
$(MAKE) -C libffi-3.2.1
if [[ ! "$(BUILD_OPTIONS)" =~ no-tests ]] ; then \ if [[ ! "$(BUILD_OPTIONS)" =~ no-tests ]] ; then \
$(MAKE) -C libffi-3.2.1 check ; \ $(MAKE) -C libffi-3.3 check ; \
fi fi
$(MAKE) -C libffi-3.2.1 install $(MAKE) -C libffi-3.3 install
rm -rf libffi-3.2.1 rm -rf libffi-3.3
--- libffi-3.0.13/src/aarch64/ffi.c.orig 2015-01-14 13:57:15.098348043 -0500
+++ libffi-3.0.13/src/aarch64/ffi.c 2015-01-14 13:58:06.023087582 -0500
@@ -668,7 +668,7 @@ aarch64_prep_args (struct call_context *
state.ngrn = N_X_ARG_REG;
memcpy (allocate_to_stack (&state, stack, ty->alignment,
- ty->size), ecif->avalue + i, ty->size);
+ ty->size), ecif->avalue[i], ty->size);
}
break;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment