[PATCH] Red Hat 8.0 and Mozilla 1.2.1 build problem
"Edward S. Marshall" <[email protected]>
| Newsgroups | gmane.comp.web.galeon.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Here's a quick patch against configure.in (from the head of the galeon-1-2 branch) to use the located C++ compiler instead of arbitrarily picking "g++". This fixes a problem where the user-specified "CXX" variable is ignored (making it impossible to build against gcc296 on Red Hat 8.0). Since AC_PROG_CXX defines CXX if it's not already set up, this should be safe. I've tested it a bit with two different g++ installations here, and I saw the correct behavior in each case. This patch eliminates the need for that hacky "string.patch" diff I've seen flying around. You still need to edit the spec file for Red Hat 8.0 (to build against gcc296/g++296 instead of gcc/g++), but this is the first step. -- Edward S. Marshall <[email protected]> http://esm.logic.net/ * configure.in: Use the user's provided choice of C++ compiler if available. Index: configure.in =================================================================== RCS file: /cvs/gnome/galeon/configure.in,v retrieving revision 1.241.2.32 diff -u -r1.241.2.32 configure.in --- configure.in 28 Nov 2002 02:17:07 -0000 1.241.2.32 +++ configure.in 5 Dec 2002 16:45:32 -0000 @@ -440,7 +440,7 @@ _mozilla_all_nspr_flags="$_mozilla_nspr_libs $_mozilla_plc_libs $_mozilla_plds_libs" dnl Now check for the evil c++ ones "by hand" -CC="g++" +CC="$CXX" LDFLAGS="$_save_ldflags -L$_mozilla_lib_place $_mozilla_all_nspr_flags -lxpcom" AC_MSG_CHECKING(for xpcom)
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA974cbtlPXUOkN4hURAnBsAJ0T39Du+Ddg6Ll5COOK5ROY59lrKACgp9dv O0c3LY41/6mnEpEfPvTnij0= =bgPa -----END PGP SIGNATURE-----