change fixup method and fix CFLAGS handling
authorImre Kaloz <kaloz@openwrt.org>
Fri, 20 Dec 2013 20:25:44 +0000 (20:25 +0000)
committerImre Kaloz <kaloz@openwrt.org>
Fri, 20 Dec 2013 20:25:44 +0000 (20:25 +0000)
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 39151

package/libs/cyassl/Makefile
package/libs/cyassl/patches/100-respect_cflags.patch [new file with mode: 0644]
package/libs/cyassl/patches/200-SSL_accept-handle-hello-garbage.patch

index df8335e800f5fc12f210fdf9527143258018a381..3b8f88b750df2bfa2979118b3729d381a99a03a6 100644 (file)
@@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=cyassl
 PKG_VERSION:=2.8.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
 PKG_SOURCE_URL:=http://www.yassl.com/
 PKG_MD5SUM:=7465d4815af90eff01095fa1b031ce09
 
-PKG_FIXUP:=patch-libtool
+PKG_FIXUP:=libtool
 PKG_INSTALL:=1
 PKG_BUILD_PARALLEL:=1
 
diff --git a/package/libs/cyassl/patches/100-respect_cflags.patch b/package/libs/cyassl/patches/100-respect_cflags.patch
new file mode 100644 (file)
index 0000000..db6c3ab
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -42,7 +42,7 @@ AC_SUBST([CYASSL_LIBRARY_VERSION])
+ # capture user C_EXTRA_FLAGS from ./configure line, CFLAGS may hold -g -O2 even
+ # if user doesn't override, no way to tell
+-USER_C_EXTRA_FLAGS="$C_EXTRA_FLAGS"
++USER_C_EXTRA_FLAGS="$CFLAGS"
+ LT_PREREQ([2.2])
+ LT_INIT([disable-static],[win32-dll])
index d46f549a5d8c5e3a90d385e810a0f236f9d563db..d28f4d38a192b72aa5aef38e9f39603216cd3661 100644 (file)
@@ -1,6 +1,6 @@
 --- a/src/internal.c
 +++ b/src/internal.c
-@@ -4622,6 +4622,10 @@
+@@ -4622,6 +4622,10 @@ int ProcessReply(CYASSL* ssl)
                  b1 =
                  ssl->buffers.inputBuffer.buffer[ssl->buffers.inputBuffer.idx++];
                  ssl->curSize = ((b0 & 0x7f) << 8) | b1;