<div dir="ltr">Merged.<div>Thanks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 16, 2016 at 9:56 PM, Bart Van Assche <span dir="ltr"><<a href="mailto:bart.vanassche@sandisk.com" target="_blank">bart.vanassche@sandisk.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">No code in the multipath-tools project calls a C++ function that<br>
generates an exception. Hence remove -fexceptions. From the gcc<br>
manual:<br>
<br>
-fexceptions<br>
<br>
Enable exception handling. Generates extra code needed to<br>
propagate exceptions. For some targets, this implies GCC<br>
generates frame unwind information for all functions, which can<br>
produce significant data size overhead, although it does not<br>
affect execution. If you do not specify this option, GCC<br>
enables it by default for languages like C++ that normally<br>
require exception handling, and disables it for languages like<br>
C that do not normally require it. However, you may need to<br>
enable this option when compiling C code that needs to<br>
interoperate properly with exception handlers written in<br>
C++. You may also wish to disable this option if you are<br>
compiling older C++ programs that don't use exception handling.<br>
<br>
Signed-off-by: Bart Van Assche <<a href="mailto:bart.vanassche@sandisk.com">bart.vanassche@sandisk.com</a>><br>
---<br>
Makefile.inc | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/Makefile.inc b/Makefile.inc<br>
index 0808e64..0631ca2 100644<br>
--- a/Makefile.inc<br>
+++ b/Makefile.inc<br>
@@ -61,7 +61,7 @@ LN = ln -sf<br>
INSTALL_PROGRAM = install<br>
<br>
OPTFLAGS = -Wunused -Wstrict-prototypes -O2 -g -pipe -Wformat-security -Wall \<br>
- -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4<br>
+ -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4<br>
<br>
CFLAGS = $(OPTFLAGS) -fPIC -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\"<br>
SHARED_FLAGS = -shared<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.9.2<br>
<br>
</font></span></blockquote></div><br></div>