Changeset 34076 for branches/eam_branches/ipp-20120601/psLib
- Timestamp:
- Jun 26, 2012, 9:57:00 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120601/psLib
- Files:
-
- 2 edited
-
configure.ac (modified) (2 diffs)
-
m4/ipp_stdopts.m4 (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120601/psLib/configure.ac
r34074 r34076 27 27 AC_SUBST(PSLIB_LT_VERSION,$PSLIB_LT_VERSION) 28 28 29 dnl move ? IPP_STDCFLAGS29 IPP_STDLDFLAGS 30 30 31 31 dnl ------------------- PERL options --------------------- … … 473 473 dnl ------- enable -Werror after all of the probes have run --------- 474 474 IPP_STDOPTS 475 476 475 IPP_STDCFLAGS 477 dnl CFLAGS="${CFLAGS} -Wall -Werror"478 dnl CFLAGS="${CFLAGS} -Wall"479 dnl enable POSIX/XSI and C99 compliance480 476 CFLAGS="${CFLAGS=} -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L" 481 477 -
branches/eam_branches/ipp-20120601/psLib/m4/ipp_stdopts.m4
r34003 r34076 1 1 2 dnl this is currently written to override an user-defined LDFLAGS, is that OK? 3 2 dnl IPP_STDCFLAGS must go *after* external probes (to avoid Werror confusing things) 4 3 AC_DEFUN([IPP_STDCFLAGS], 5 4 [ … … 15 14 ] 16 15 ) 16 dnl this section accepts a user-defined CFLAGS, and sets CFLAGS to the empty string if not present 17 17 AC_ARG_ENABLE(debug-build, 18 18 [AS_HELP_STRING(--enable-debug-build,enable debug build: ie disable Werror)], … … 32 32 ] 33 33 ) 34 AC_ARG_ENABLE(no-as-needed, [AS_HELP_STRING(--enable-no-as-needed, prevent as-needed option sometimes supplied to gcc such as Ubuntu after 11.11)], 35 [AC_MSG_RESULT(compile optimization enabled) 34 ]) 35 36 dnl IPP_STDLDFLAGS must go *before* external probes (so linking is done with --no-as-needed if needed) 37 AC_DEFUN([IPP_STDLDFLAGS], 38 [ 39 dnl this section accepts a user-defined LDFLAGS, and sets LDFLAGS to the empty string if not present 40 AC_ARG_ENABLE(no-as-needed, 41 [AS_HELP_STRING(--enable-no-as-needed, prevent as-needed option sometimes supplied to gcc such as Ubuntu after 11.11)], 42 [AC_MSG_RESULT(no-as-needed passed to linker) 36 43 if test x"${LDFLAGS}" == x; then 44 LDFLAGS="-Wl,--no-as-needed" 45 else 37 46 LDFLAGS="${LDFLAGS=} -Wl,--no-as-needed" 38 else 39 LDFLAGS="-Wl,--no-as-needed" 47 fi 48 ], 49 [AC_MSG_RESULT(as-needed linker flags accepted) 50 if test x"${LDFLAGS}" == x; then 51 LDFLAGS="" 40 52 fi 41 53 ]
Note:
See TracChangeset
for help on using the changeset viewer.
