patch-unix_configure 1.1 KB

1234567891011121314151617181920212223242526272829
  1. $OpenBSD: patch-unix_configure,v 1.2 2009/01/14 16:59:51 sturm Exp $
  2. --- unix/configure.orig Fri Dec 12 22:58:30 2008
  3. +++ unix/configure Fri Dec 12 22:59:38 2008
  4. @@ -98,7 +98,6 @@ int main()
  5. _EOF_
  6. $CC $CFLAGS -c conftest.c > /dev/null 2>/dev/null
  7. if test $? -eq 0; then
  8. - CFLAGS_OPT='-O3'
  9. echo " GNU C ($CFLAGS_OPT)"
  10. # Special Mac OS X shared library "ld" option?
  11. if test ` uname -s 2> /dev/null ` = 'Darwin'; then
  12. @@ -110,7 +109,6 @@ _EOF_
  13. rm -f conftest
  14. fi
  15. else
  16. - CFLAGS_OPT='-O'
  17. echo " Other-unknown C ($CFLAGS_OPT)"
  18. fi
  19. fi
  20. @@ -244,7 +242,7 @@ if eval "$CPP match.S > _match.s 2>/dev/null"; then
  21. echo "int foo() { return 0;}" > conftest.c
  22. $CC -c conftest.c >/dev/null 2>/dev/null
  23. echo Check if compiler generates underlines
  24. - nm conftest.o | grep "(^|[^_])foo" >/dev/null 2>/dev/null
  25. + nm conftest.o | egrep "(^|[^_])foo" >/dev/null 2>/dev/null
  26. [ $? -eq 0 ] && CPP="${CPP} -DNO_UNDERLINE"
  27. if eval "$CPP crc_i386.S > _crc_i386.s 2>/dev/null"; then
  28. if eval "$CC -c _crc_i386.s >/dev/null 2>/dev/null" && [ -f _crc_i386.o ]