summaryrefslogtreecommitdiff
path: root/print/cups/patches
diff options
context:
space:
mode:
authoryyamano <yyamano>2006-02-16 15:52:15 +0000
committeryyamano <yyamano>2006-02-16 15:52:15 +0000
commit8ac3d473a98b9fac8221d36b24e54b50b3e010ec (patch)
tree40b237910447a262666893f8220e3a36472bb4a3 /print/cups/patches
parent05b0122bb46c85d5f6f9fe32b72e065b86db8b52 (diff)
downloadpkgsrc-8ac3d473a98b9fac8221d36b24e54b50b3e010ec.tar.gz
Make this buld with gcc 4.x. Fix PR 32744.
Diffstat (limited to 'print/cups/patches')
-rw-r--r--print/cups/patches/patch-ah41
1 files changed, 41 insertions, 0 deletions
diff --git a/print/cups/patches/patch-ah b/print/cups/patches/patch-ah
new file mode 100644
index 00000000000..7515b7c8d03
--- /dev/null
+++ b/print/cups/patches/patch-ah
@@ -0,0 +1,41 @@
+$NetBSD: patch-ah,v 1.14 2006/02/16 15:52:15 yyamano Exp $
+
+--- config-scripts/cups-compiler.m4.orig 2005-01-04 04:29:45.000000000 +0900
++++ config-scripts/cups-compiler.m4
+@@ -39,36 +39,6 @@ CXXLIBS=""
+ AC_SUBST(CXXLIBS)
+
+ if test -n "$GCC"; then
+- # Starting with GCC 3.0, you must link C++ programs against either
+- # libstdc++ (shared by default), or libsupc++ (always static). If
+- # you care about binary portability between Linux distributions,
+- # you need to either 1) build your own GCC with static C++ libraries
+- # or 2) link using gcc and libsupc++. We choose the latter since
+- # CUPS doesn't (currently) use any of the stdc++ library.
+- #
+- # Also, GCC 3.0.x still has problems compiling some code. You may
+- # or may not have success with it. USE 3.0.x WITH EXTREME CAUTION!
+- #
+- # Previous versions of GCC do not have the reliance on the stdc++
+- # or g++ libraries, so the extra supc++ library is not needed.
+-
+- AC_MSG_CHECKING(if libsupc++ is required)
+-
+- SUPC="`$CXX -print-file-name=libsupc++.a 2>/dev/null`"
+- case "$SUPC" in
+- libsupc++.a*)
+- # Library not found, so this is and older GCC...
+- AC_MSG_RESULT(no)
+- ;;
+- *)
+- # This is gcc 3.x, and it knows of libsupc++, so we need it
+- CXXLIBS="-lsupc++"
+- AC_MSG_RESULT(yes)
+- ;;
+- esac
+-
+- CXX="$CC"
+-
+ if test -z "$OPTIM"; then
+ if test "x$with_optim" = x; then
+ if test $uname = HP-UX; then