diff options
author | Alin Năstac <mrness@gentoo.org> | 2009-08-22 22:37:26 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2009-08-22 22:37:26 +0000 |
commit | ff98ae20a7731721f28ed442ef363b067916c400 (patch) | |
tree | ca786e9d993311ecb66edc3d8dc11558ff4a9a3e /mail-mta | |
parent | Version bump (diff) | |
download | gentoo-2-ff98ae20a7731721f28ed442ef363b067916c400.tar.gz gentoo-2-ff98ae20a7731721f28ed442ef363b067916c400.tar.bz2 gentoo-2-ff98ae20a7731721f28ed442ef363b067916c400.zip |
Fix gcc command used for linking libmilter.so
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'mail-mta')
-rw-r--r-- | mail-mta/sendmail/files/site.config.m4 | 1 | ||||
-rw-r--r-- | mail-mta/sendmail/sendmail-8.14.3-r1.ebuild | 16 |
2 files changed, 10 insertions, 7 deletions
diff --git a/mail-mta/sendmail/files/site.config.m4 b/mail-mta/sendmail/files/site.config.m4 index 470d3cfc32d3..a9e0883a9b00 100644 --- a/mail-mta/sendmail/files/site.config.m4 +++ b/mail-mta/sendmail/files/site.config.m4 @@ -6,6 +6,7 @@ define(`confSTDIO_TYPE', `portable') define(`confLDOPTS', `-Wl,-z,now @@confLDOPTS@@') define(`confLDOPTS_SO', `-shared') define(`confCCOPTS_SO', `-fPIC') +define(`confCC', `@@confCC@@') define(`confMANOWN', `root') define(`confMANGRP', `root') define(`confMANMODE', `644') diff --git a/mail-mta/sendmail/sendmail-8.14.3-r1.ebuild b/mail-mta/sendmail/sendmail-8.14.3-r1.ebuild index 6e030c3735f5..9e3aea9dbe6f 100644 --- a/mail-mta/sendmail/sendmail-8.14.3-r1.ebuild +++ b/mail-mta/sendmail/sendmail-8.14.3-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/sendmail-8.14.3-r1.ebuild,v 1.1 2009/08/22 21:41:23 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/sendmail-8.14.3-r1.ebuild,v 1.2 2009/08/22 22:37:26 mrness Exp $ EAPI="2" @@ -49,10 +49,11 @@ src_prepare() { epatch "${FILESDIR}"/sendmail-delivered_hdr.patch epatch "${FILESDIR}"/libmilter-sharedlib.patch - confCCOPTS="${CFLAGS}" - confLDOPTS="${LDFLAGS}" - confMAPDEF="-DMAP_REGEX" - conf_sendmail_LIBS="" + local confCC="$(tc-getCC)" + local confCCOPTS="${CFLAGS}" + local confLDOPTS="${LDFLAGS}" + local confMAPDEF="-DMAP_REGEX" + local conf_sendmail_LIBS="" use sasl && confLIBS="${confLIBS} -lsasl2" \ && confENVDEF="${confENVDEF} -DSASL=2" \ && confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \ @@ -69,6 +70,7 @@ src_prepare() { use sockets && confENVDEF="${confENVDEF} -DSOCKETMAP" sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \ -e "s/@@confLDOPTS@@/${confLDOPTS}/" \ + -e "s/@@confCC@@/${confCC}/" \ -e "s/@@confMAPDEF@@/${confMAPDEF}/" \ -e "s/@@confENVDEF@@/${confENVDEF}/" \ -e "s/@@confLIBS@@/${confLIBS}/" \ @@ -77,9 +79,9 @@ src_prepare() { } src_compile() { - sh Build CC="$(tc-getCC)"|| die "compilation failed in main Build script" + sh Build || die "compilation failed in main Build script" pushd libmilter - sh Build MILTER_SOVER=${LIBMILTER_VER} CC="$(tc-getCC)"|| die "libmilter compilation failed" + sh Build MILTER_SOVER=${LIBMILTER_VER} || die "libmilter compilation failed" popd } |