Changeset 3045


Ignore:
Timestamp:
Oct 29, 2013 5:23:09 AM (6 years ago)
Author:
stefan
Message:

patch by T. Kelman to setup proper CXXLIBS when clang is used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r3007 r3045  
    617617        ;;
    618618      *)
    619         CXXLIBS="-lstdc++ -lm" # -lgcc"
     619        # clang uses libc++ as the default standard C++ library, not libstdc++
     620        # this test is supposed to recognize whether the compiler is clang
     621        #
     622        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <ciso646>]], [[
     623#ifndef _LIBCPP_VERSION
     624       choke me
     625#endif
     626          ]])],
     627          [CXXLIBS="-lc++"],
     628          [CXXLIBS="-lstdc++ -lm"])
    620629        ;;
    621630    esac
Note: See TracChangeset for help on using the changeset viewer.