diff options
author | Aron Griffis <agriffis@gentoo.org> | 2004-06-24 04:31:25 +0000 |
---|---|---|
committer | Aron Griffis <agriffis@gentoo.org> | 2004-06-24 04:31:25 +0000 |
commit | e7c864249e92de0c5fb07a3a50868d1f3ec6adb7 (patch) | |
tree | 1ff26fe079386143d4973a873d37b92117f91d6e /sys-devel/gcc/gcc-3.3.3-r6.ebuild | |
parent | added uclibc update for 5.8.4 (Manifest recommit) (diff) | |
download | gentoo-2-e7c864249e92de0c5fb07a3a50868d1f3ec6adb7.tar.gz gentoo-2-e7c864249e92de0c5fb07a3a50868d1f3ec6adb7.tar.bz2 gentoo-2-e7c864249e92de0c5fb07a3a50868d1f3ec6adb7.zip |
Fix use invocation and regenerate broken manifest
Diffstat (limited to 'sys-devel/gcc/gcc-3.3.3-r6.ebuild')
-rw-r--r-- | sys-devel/gcc/gcc-3.3.3-r6.ebuild | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/sys-devel/gcc/gcc-3.3.3-r6.ebuild b/sys-devel/gcc/gcc-3.3.3-r6.ebuild index 25ccc015345d..0eaca2e0d008 100644 --- a/sys-devel/gcc/gcc-3.3.3-r6.ebuild +++ b/sys-devel/gcc/gcc-3.3.3-r6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.3.3-r6.ebuild,v 1.6 2004/06/09 09:39:23 pappy Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.3.3-r6.ebuild,v 1.7 2004/06/24 04:31:25 agriffis Exp $ IUSE="static nls bootstrap java build X multilib gcj f77 objc pic hardened uclibc debug" @@ -316,7 +316,7 @@ src_unpack() { # do not enable it, the pie patches won't apply #use uclibc || mv -f ${WORKDIR}/patch/8?_* ${WORKDIR}/patch/exclude/ - if [ -n "`use multilib`" -a "${ARCH}" = "amd64" ] + if use multilib && [ "${ARCH}" = "amd64" ] then mv -f ${WORKDIR}/patch/06* ${WORKDIR}/patch/exclude/ bzip2 -c ${FILESDIR}/gcc331_use_multilib.amd64.patch > \ @@ -379,9 +379,9 @@ src_unpack() { cd ${WORKDIR}/${P} release_version="${release_version}, pie-${PIE_VER}" - # if ( use hardened && ( use x86 || use sparc || use amd64 ) ) + # if use hardened && ( use x86 || use sparc || use amd64 ) # the use hardened && use sparc part breaks glibc compiling - pappy - if ( use hardened && ( use x86 || use amd64 ) ) + if use hardened && ( use x86 || use amd64 ) then einfo "Updating gcc to use automatic PIE + SSP building ..." sed -e 's|^ALL_CFLAGS = |ALL_CFLAGS = -DEFAULT_PIE_SSP |' \ @@ -442,16 +442,14 @@ src_compile() { # X11 support is still very experimental but enabling it is # quite innocuous... [No, gcc is *not* linked to X11...] # <dragon@gentoo.org> (15 May 2003) - if [ -n "`use java`" -a -n "`use gcj`" -a \ - -n "`use X`" -a -z "`use build`" -a \ - -f /usr/X11R6/include/X11/Xlib.h ] + if use java && use gcj && use X && ! use build && [ -f /usr/X11R6/include/X11/Xlib.h ] then myconf="${myconf} --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib" myconf="${myconf} --enable-interpreter --enable-java-awt=xlib --with-x" fi # Multilib not yet supported - if [ -n "`use multilib`" -a "${ARCH}" = "amd64" ] + if use multilib && [ "${ARCH}" = "amd64" ] then einfo "WARNING: Multilib support enabled. This is still experimental." myconf="${myconf} --enable-multilib" @@ -536,7 +534,7 @@ src_compile() { einfo "Building GCC..." # Only build it static if we are just building the C frontend, else # a lot of things break because there are not libstdc++.so .... - if [ -n "`use static`" -a "${gcc_lang}" = "c" ] + if use static && [ "${gcc_lang}" = "c" ] then # Fix for our libtool-portage.patch S="${WORKDIR}/build" \ @@ -598,7 +596,7 @@ src_install() { dodir /etc/env.d/gcc echo "PATH=\"${BINPATH}\"" > ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL} echo "ROOTPATH=\"${BINPATH}\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL} - if [ -n "`use multilib`" -a "${ARCH}" = "amd64" ] + if use multilib && [ "${ARCH}" = "amd64" ] then # amd64 is a bit unique because of multilib. Add some other paths echo "LDPATH=\"${LIBPATH}:${LIBPATH}/32:${LIBPATH}/../lib64:${LIBPATH}/../lib32\"" >> \ @@ -760,7 +758,7 @@ src_install() { exeinto /sbin doexe ${FILESDIR}/fix_libtool_files.sh - if [ -n "`use multilib`" -a "${ARCH}" = "amd64" ] + if use multilib && [ "${ARCH}" = "amd64" ] then # If using multilib, GCC has a bug, where it doesn't know where to find # -lgcc_s when linking while compiling with g++ . ${LIBPATH} is in @@ -780,7 +778,7 @@ pkg_preinst() { # Make again sure that the linker "should" be able to locate # libstdc++.so ... - if [ -n "`use multilib`" -a "${ARCH}" = "amd64" ] + if use multilib && [ "${ARCH}" = "amd64" ] then # Can't always find libgcc_s.so.1, make it find it export LD_LIBRARY_PATH="${LIBPATH}:${LIBPATH}/../lib64:${LIBPATH}/../lib32:${LD_LIBRARY_PATH}" @@ -792,7 +790,7 @@ pkg_preinst() { pkg_postinst() { - if [ -n "`use multilib`" -a "${ARCH}" = "amd64" ] + if use multilib && [ "${ARCH}" = "amd64" ] then # Can't always find libgcc_s.so.1, make it find it export LD_LIBRARY_PATH="${LIBPATH}:${LIBPATH}/../lib64:${LIBPATH}/../lib32:${LD_LIBRARY_PATH}" |