patch-pfe_configure 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. $OpenBSD: patch-pfe_configure,v 1.4 2015/06/19 08:02:14 jasper Exp $
  2. --- pfe/configure.orig Sat Oct 17 19:50:54 2009
  3. +++ pfe/configure Fri Jun 19 08:58:08 2015
  4. @@ -19714,7 +19714,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $
  5. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6. ac_save_CFLAGS="$CFLAGS"
  7. -for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
  8. +for ac_arg in "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-h conform % -h msglevel 2" #
  9. do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  10. cat >conftest.$ac_ext <<_ACEOF
  11. /* confdefs.h. */
  12. @@ -20477,7 +20477,6 @@ test "$with_sbr_threading" = "yes" && uses_sbr_threadi
  13. GCC_WARN="" ; OPTIM="" ; DEBUG=""
  14. { $as_echo "$as_me:$LINENO: checking optimize level \"$WITHVAL_OPT\" is..." >&5
  15. $as_echo_n "checking optimize level \"$WITHVAL_OPT\" is...... " >&6; }
  16. -CFLAGS=`echo " $CFLAGS " | sed -e 's/ -O[0-9]* / /'`
  17. opt_level="$WITHVAL_OPT"
  18. if test "$GCC" = "yes" ; then
  19. OPTIM="-O$opt_level"
  20. @@ -20549,16 +20548,6 @@ LIBS=`echo " $LIBS " | sed -e "s/ -lm //g"`
  21. PACKAGE_CFLAGS="$EXTRAS" # PACKAGE_LIBS = -lpfe
  22. -if test "$GCC" = "yes" ; then if test "_$libpfe_no_debug" = "_yes" ; then
  23. -{ $as_echo "$as_me:$LINENO: result: cleaning CFLAGS from -g occurrences" >&5
  24. -$as_echo "cleaning CFLAGS from -g occurrences" >&6; }
  25. - CFLAGS=`echo " $CFLAGS " | sed -e "s/ -g //g"`
  26. -fi fi
  27. -if test "_$libpfe_no_strip" = "_yes" ; then
  28. -{ $as_echo "$as_me:$LINENO: result: cleaning LDFLAGS from -Wl" >&5
  29. -$as_echo "cleaning LDFLAGS from -Wl" >&6; }
  30. - LDFLAGS=`echo " $LDFLAGS " | sed -e 's/ -Wl,-S //'`
  31. -fi
  32. if test "$enable_shared" = "yes" ; then
  33. cat >>confdefs.h <<\_ACEOF
  34. @@ -23900,7 +23889,7 @@ sh ./libtool --features
  35. | sed -e '/^.*undef PFE_WITH_/s,^.*undef ,config no ,'
  36. echo "using defs= $PFE_DEFS"
  37. - x="$cc_opt_pipe $cc_opt_write_strings $cc_opt_strict_prototypes"
  38. + x="$cc_opt_write_strings $cc_opt_strict_prototypes"
  39. echo "using cflags= $x $GCC_WARN $WITH_CFLAGS $USER_CONFIG"
  40. echo "using CFLAGS= $CFLAGS"
  41. echo "using LIBS= $LIBS"