diff options
author | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2014-07-23 14:54:03 -0300 |
---|---|---|
committer | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2014-07-23 14:54:03 -0300 |
commit | b425ec957a2dc92b872c26b80559bfaca625b121 (patch) | |
tree | 781d3033db9c0826a44d734000a3319a00fe5a17 | |
parent | cb10e929f20cfa2f971e2bee80e8b82b9989ad65 (diff) | |
download | elementary-b425ec957a2dc92b872c26b80559bfaca625b121.tar.gz |
cxx: Fixed --disable-c++11 option
The use of AM_CONDITIONAL for setting LDFLAGS and CXXFLAGS was wrong
because it ends up setting HAVE_CXX11 unconditionally.
-rw-r--r-- | configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 5e6248e46..6188c0561 100644 --- a/configure.ac +++ b/configure.ac @@ -246,13 +246,15 @@ if test "x${HAVE_CXX11}" = "x1" -a "x${want_cxx11}" = "xyes"; then evas-cxx >= efl_version \ " have_cxx11="yes" + LDFLAGS="${LDFLAGS} -shared -fPIC -DPIC" + CXXFLAGS="${CXXFLAGS} -fPIC -DPIC" ], [have_cxx11="no"] ) +else + have_cxx11="no" fi AM_CONDITIONAL([HAVE_CXX11], [test "x${have_cxx11}" = "xyes"]) -AM_CONDITIONAL([HAVE_CXX11], [LDFLAGS="${LDFLAGS} -shared -fPIC -DPIC"]) -AM_CONDITIONAL([HAVE_CXX11], [CXXFLAGS="${CXXFLAGS} -fPIC -DPIC"]) have_elementary_x="no" want_elementary_x="auto" @@ -772,7 +774,9 @@ echo echo "Compilation................: make (or gmake)" echo " CPPFLAGS.................: $CPPFLAGS" echo " CFLAGS...................: $CFLAGS" +if test "x${have_cxx11}" = "xyes"; then echo " CXXFLAGS.................: $CXXFLAGS" +fi echo " LDFLAGS..................: $LDFLAGS" echo if test "${build_tests}" = "none"; then |