Overview
Comment: | configure: Fix the OBJCFLAGS vs OBJCXXFLAGS mess |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
820b470b774ff064d91907308b7d945c |
User & Date: | js on 2017-04-30 11:49:12 |
Other Links: | manifest | tags |
Context
2017-05-08
| ||
00:11 | Update to recent ObjFW changes check-in: 860515ac5a user: js tags: trunk | |
2017-04-30
| ||
11:49 | configure: Fix the OBJCFLAGS vs OBJCXXFLAGS mess check-in: 820b470b77 user: js tags: trunk | |
11:41 | Add -Wno-ignored-attributes flag (#5) check-in: 64b5d517f4 user: js tags: trunk | |
Changes
Modified configure.ac from [b9a20659e6] to [37d4e702b4].
︙ | ︙ | |||
19 20 21 22 23 24 25 | AC_PROG_OBJCXXCPP AC_PROG_LN_S AC_PROG_INSTALL AC_PROG_EGREP CPP="$OBJCXXCPP" CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS $($OBJFW_CONFIG --cppflags)" | | | | | | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | AC_PROG_OBJCXXCPP AC_PROG_LN_S AC_PROG_INSTALL AC_PROG_EGREP CPP="$OBJCXXCPP" CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS $($OBJFW_CONFIG --cppflags)" OBJCXXFLAGS="$OBJCXXFLAGS -Wall $($OBJFW_CONFIG --objcflags)" LDFLAGS="$LDFLAGS $($OBJFW_CONFIG --ldflags --rpath)" LIBS="$LIBS $($OBJFW_CONFIG --libs)" AX_CHECK_COMPILER_FLAGS(-std=c++11, [OBJCXXFLAGS="$OBJCXXFLAGS -std=c++11"], [ AC_MSG_ERROR(You need a compiler that supports C++11!) ]) AX_CHECK_COMPILER_FLAGS(-pipe, [OBJCXXFLAGS="$OBJCXXFLAGS -pipe"]) AX_CHECK_COMPILER_FLAGS(-fno-common, [OBJCXXFLAGS="$OBJCXXFLAGS -fno-common"]) AX_CHECK_COMPILER_FLAGS(-Wobjc-missing-property-synthesis -Werror, [OBJCXXFLAGS="$OBJCXXFLAGS -Wobjc-missing-property-synthesis"]) AX_CHECK_COMPILER_FLAGS(-Wno-ignored-attributes -Werror, [OBJCXXFLAGS="$OBJCXXFLAGS -Wno-ignored-attributes"]) AC_CHECK_TOOL(AR, ar) AC_PROG_RANLIB AC_ARG_ENABLE(shared, AS_HELP_STRING([--disable-shared], [do not build shared library])) |
︙ | ︙ | |||
83 84 85 86 87 88 89 | ]) PKG_CHECK_MODULES(Qt5Widgets, [Qt5Widgets >= 5.5], [ CPPFLAGS="$CPPFLAGS $Qt5Widgets_CFLAGS" LIBS="$LIBS $Qt5Widgets_LIBS" ], [ AC_MSG_ERROR(You need Qt5Widgets >= 5.5 installed!) ]) | | | | 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | ]) PKG_CHECK_MODULES(Qt5Widgets, [Qt5Widgets >= 5.5], [ CPPFLAGS="$CPPFLAGS $Qt5Widgets_CFLAGS" LIBS="$LIBS $Qt5Widgets_LIBS" ], [ AC_MSG_ERROR(You need Qt5Widgets >= 5.5 installed!) ]) AS_IF([test x"$GOBJCXX" = x"yes"], [ OBJCXXFLAGS="$OBJCXXFLAGS -Wwrite-strings -Wpointer-arith -Werror" ]) AC_MSG_CHECKING(whether Qt requires PIC) AC_EGREP_CPP(yes, [ #include <qglobal.h> #ifdef QT_REDUCE_RELOCATIONS |
︙ | ︙ | |||
108 109 110 111 112 113 114 | BUILDSYS_INIT dnl We don't call AC_PROG_CPP or AC_PROG_OBJC, but only AC_PROG_OBJCPPCXX and dnl set CPP and OBJCC to OBJCPPCXX and add OBJCXXCPPFLAGS to CPPFLAGS, thus we dnl need to AC_SUBST these ourself. AC_SUBST(CPP) AC_SUBST(CPPFLAGS) | < < | 108 109 110 111 112 113 114 115 116 117 | BUILDSYS_INIT dnl We don't call AC_PROG_CPP or AC_PROG_OBJC, but only AC_PROG_OBJCPPCXX and dnl set CPP and OBJCC to OBJCPPCXX and add OBJCXXCPPFLAGS to CPPFLAGS, thus we dnl need to AC_SUBST these ourself. AC_SUBST(CPP) AC_SUBST(CPPFLAGS) AC_CONFIG_FILES([buildsys.mk extra.mk]) AC_OUTPUT |