From deda3f5b656c19eb42bc063439ba2431ed0477fc Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Sat, 20 Jun 2015 22:46:24 +0200 Subject: [PATCH] Add GCC optimization flag when compile native transport Motivation: We not set any optimization flag when compile native transport Modification: Add -O3 to CFLAGS to have GCC do optimizations Result: Ship optimized native code --- transport-native-epoll/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport-native-epoll/pom.xml b/transport-native-epoll/pom.xml index 312e350f7a..25c5116c99 100644 --- a/transport-native-epoll/pom.xml +++ b/transport-native-epoll/pom.xml @@ -186,7 +186,7 @@ ${linux.sendmmsg.support}${glibc.sendmmsg.support} .*IO_NETTY_SENDMSSG_NOT_FOUND.* - CFLAGS="-DIO_NETTY_SENDMMSG_NOT_FOUND" + CFLAGS=-O3 -DIO_NETTY_SENDMMSG_NOT_FOUND false @@ -202,7 +202,7 @@ ${jni.compiler.args} ^((?!CFLAGS=).)*$ - CFLAGS="" + CFLAGS=-O3 false