Permalink
Browse files

PR#5921 "compact unwind" warnings under MacOS

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13423 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information...
1 parent 4b62517 commit b2636c22d55b15f55a02b304888d0339630d5beb Damien Doligez committed Mar 22, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 configure
View
5 configure
@@ -274,6 +274,7 @@ case "$bytecc,$host" in
*,*-*-darwin*)
bytecccompopts="-fno-defer-pop $gcc_warnings"
mathlib=""
+ mkexe="$mkexe -Wl,-no_compact_unwind"
# Tell gcc that we can use 32-bit code addresses for threaded code
# unless we are compiled for a shared library (-fPIC option)
echo "#ifndef __PIC__" >> m.h
@@ -596,7 +597,7 @@ if test $withsharedlibs = "yes"; then
dl_needs_underscore=false
shared_libraries_supported=true;;
*-apple-darwin*)
- mksharedlib="$bytecc -bundle -flat_namespace -undefined suppress"
+ mksharedlib="$bytecc -bundle -flat_namespace -undefined suppress -Wl,-no_compact_unwind"
bytecccompopts="$dl_defs $bytecccompopts"
dl_needs_underscore=false
shared_libraries_supported=true;;
@@ -724,6 +725,8 @@ fi
nativecccompopts=''
nativecclinkopts=''
+# FIXME the naming of nativecclinkopts is broken: these are options for
+# ld (for shared libs), not for cc
nativeccrpath="$byteccrpath"
case "$arch,$nativecc,$system,$host_type" in

0 comments on commit b2636c2

Please sign in to comment.