diff options
author | Daniel Robbins <drobbins@gentoo.org> | 2003-06-22 05:30:35 +0000 |
---|---|---|
committer | Daniel Robbins <drobbins@gentoo.org> | 2003-06-22 05:30:35 +0000 |
commit | ab098ceab58056f38a9cee82d00fa4fbb35d4acf (patch) | |
tree | 9c738e6de18c0d558f27102af1efe1b1601bc680 /sys-devel/gcc | |
parent | blah (diff) | |
download | gentoo-2-ab098ceab58056f38a9cee82d00fa4fbb35d4acf.tar.gz gentoo-2-ab098ceab58056f38a9cee82d00fa4fbb35d4acf.tar.bz2 gentoo-2-ab098ceab58056f38a9cee82d00fa4fbb35d4acf.zip |
gcc-3.3 for amd64
Diffstat (limited to 'sys-devel/gcc')
-rw-r--r-- | sys-devel/gcc/Manifest | 5 | ||||
-rw-r--r-- | sys-devel/gcc/files/specs-3.3-amd64-unilib | 118 | ||||
-rw-r--r-- | sys-devel/gcc/gcc-3.3.ebuild | 31 |
3 files changed, 146 insertions, 8 deletions
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest index bd5bb44402ca..ec172bf5a655 100644 --- a/sys-devel/gcc/Manifest +++ b/sys-devel/gcc/Manifest @@ -8,9 +8,9 @@ MD5 8b116192168fec85477e59d68d24ac44 gcc-3.2-r5.ebuild 12936 MD5 857d79065f68cdc820201acbeb5c10ac gcc-3.2.1-r7.ebuild 14840 MD5 25e5edcce8f471a375b397ccbd52a761 gcc-3.2.2-r2.ebuild 15119 MD5 3d13dcdb8ae4a92e1809b031504feb59 gcc-3.2.2.ebuild 15327 -MD5 bb5838ab2eb320671a1660137f7add20 gcc-3.2.3-r1.ebuild 15896 -MD5 8404d33d188fb93f4f825abf2ad4f8d7 gcc-3.3.ebuild 15669 +MD5 cc1be3b81467d78adbe37b1aa9f2e139 gcc-3.3.ebuild 16164 MD5 feed532ddfb47b382cd79f924d8578db manifest 7147 +MD5 bb5838ab2eb320671a1660137f7add20 gcc-3.2.3-r1.ebuild 15896 MD5 d70bcc196f1d68275346f067efcb9373 files/cc 20 MD5 dcf3646d19d351cc4d95a8096c6eaf58 files/cpp 20 MD5 3213bd50acdbbd71ce7dd3e40710e30e files/digest-gcc-2.95.3-r7 64 @@ -34,6 +34,7 @@ MD5 a84561f46d573c1c835b1c4d2510cc07 files/gcc-3-deopt.patch 588 MD5 9c13e6b0d5770979430b76c578afa22c files/gcc3-program-transform.patch 9771 MD5 e3193bdffb435b77a21bfb504ff6f591 files/mkinfodir 7324 MD5 33df162e1767e168f4f39442785071af files/texinfo-4.0-no-ncurses-gentoo.diff 51748 +MD5 c589fe6a54dc88cf40463cf85a32e81e files/specs-3.3-amd64-unilib 3953 MD5 aa7a1e8bbe618c0d88368e69caeb7653 files/3.1/gcc31-attr-visibility.patch.bz2 3671 MD5 8b4c6af1c730dcdd843a77e8095d312b files/3.1/gcc31-attr-visibility2.patch.bz2 2341 MD5 98f539e65ab7e21994e5d378537a5506 files/3.1/gcc31-boehm-gc-libs.patch.bz2 1921 diff --git a/sys-devel/gcc/files/specs-3.3-amd64-unilib b/sys-devel/gcc/files/specs-3.3-amd64-unilib new file mode 100644 index 000000000000..2cd2bb4deeba --- /dev/null +++ b/sys-devel/gcc/files/specs-3.3-amd64-unilib @@ -0,0 +1,118 @@ +*asm: +%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} %{m32:--32} + +*asm_debug: +%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}} + +*asm_final: +%| + +*asm_options: +%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O} + +*invoke_as: +%{!S:-o %{|!pipe:%g.s} | + as %(asm_options) %{!pipe:%g.s} %A } + +*cpp: +%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} + +*cpp_options: +%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*} %{O*} %{undef} + +*cpp_debug_options: +%{d*} + +*cpp_unique_options: +%{C:%{!E:%eGNU C does not support -C without using -E}} %{CC:%{!E:%eGNU C does not support -CC without using -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3} %{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{E|M|MM:%W{o*}} + +*trad_capable_cpp: +cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp} + +*cc1: +%(cc1_cpu) %{profile:-p} + +*cc1_options: +%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} -auxbase%{c|S:%{o*:-strip %*}%{!o*: %b}}%{!c:%{!S: %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*} %{ansi} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} + +*cc1plus: + + +*link_gcc_c_sequence: +%G %L %G + +*endfile: +%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s + +*link: +%{!static:--eh-frame-hdr} %{!m32:-m elf_x86_64} %{m32:-m elf_i386} %{shared:-shared} %{!shared: %{!static: %{rdynamic:-export-dynamic} %{m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} %{!m32:%{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}}} %{static:-static}} + +*lib: +%{pthread:-lpthread} %{shared:-lc} %{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}} + +*libgcc: +%{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc -lgcc_eh}%{shared-libgcc:-lgcc_s%M -lgcc}}%{shared:%{shared-libgcc:-lgcc_s%M}%{!shared-libgcc:-lgcc}}}} -L/usr/lib/gcc-lib/x86_64-pc-linux-gnu/lib64 + +*startfile: +%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s %{static:crtbeginT.o%s} %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}} + +*switches_need_spaces: + + +*predefines: + + +*cross_compile: +0 + +*version: +3.3 + +*multilib: +. !m64 !m32;64:../lib64 m64 !m32;32:../lib !m64 m32; + +*multilib_defaults: +m64 + +*multilib_extra: + + +*multilib_matches: +m64 m64;m32 m32; + +*multilib_exclusions: + + +*multilib_options: +m64/m32 + +*linker: +collect2 + +*link_libgcc: +%D + +*md_exec_prefix: + + +*md_startfile_prefix: + + +*md_startfile_prefix_1: + + +*startfile_prefix_spec: + + +*cc1_cpu: +%{!mcpu*: %{m386:-mcpu=i386 %n`-m386' is deprecated. Use `-march=i386' or `-mcpu=i386' instead. +} %{m486:-mcpu=i486 %n`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead. +} %{mpentium:-mcpu=pentium %n`-mpentium' is deprecated. Use `-march=pentium' or `-mcpu=pentium' instead. +} %{mpentiumpro:-mcpu=pentiumpro %n`-mpentiumpro' is deprecated. Use `-march=pentiumpro' or `-mcpu=pentiumpro' instead. +}} %{mintel-syntax:-masm=intel %n`-mintel-syntax' is deprecated. Use `-masm=intel' instead. +} %{mno-intel-syntax:-masm=att %n`-mno-intel-syntax' is deprecated. Use `-masm=att' instead. +} + +*link_command: +%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}} + diff --git a/sys-devel/gcc/gcc-3.3.ebuild b/sys-devel/gcc/gcc-3.3.ebuild index ce5494f17be7..e9df72f7eeb0 100644 --- a/sys-devel/gcc/gcc-3.3.ebuild +++ b/sys-devel/gcc/gcc-3.3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 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.ebuild,v 1.3 2003/05/19 19:45:23 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.3.ebuild,v 1.4 2003/06/22 05:30:30 drobbins Exp $ IUSE="static nls bootstrap java build X" @@ -98,7 +98,7 @@ DESCRIPTION="The GNU Compiler Collection. Includes C/C++ and java compilers" HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" LICENSE="GPL-2 LGPL-2.1" -KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~arm ~mips" +KEYWORDS="-* amd64" # Ok, this is a hairy one again, but lets assume that we # are not cross compiling, than we want SLOT to only contain @@ -234,6 +234,7 @@ src_unpack() { } src_compile() { + local myconf= local gcc_lang= @@ -266,7 +267,11 @@ src_compile() { 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 + #multilib allows dynamic support for 32-bit or 64-bit on amd64, s390, sparc, mips, ppc systems + myconf="$myconf --disable-multilib" + # In general gcc does not like optimization, and add -O2 where # it is safe. This is especially true for gcc-3.3 ... export CFLAGS="${CFLAGS/-O?/-O2}" @@ -328,8 +333,9 @@ src_compile() { # Fix for our libtool-portage.patch S="${WORKDIR}/build" \ emake bootstrap-lean \ - LIBPATH="${LIBPATH}" \ BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O" || die +# LIBPATH="${LIBPATH}" \ + fi } @@ -354,17 +360,22 @@ src_install() { datadir=${DATAPATH} \ mandir=${DATAPATH}/man \ infodir=${DATAPATH}/info \ - LIBPATH="${LIBPATH}" \ DESTDIR="${D}" \ install || die + #LIBPATH="${LIBPATH}" \ [ -r ${D}${BINPATH}/gcc ] || die "gcc not found in ${D}" - + dodir /lib /usr/bin 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 [ "$ARCH" = "amd64" ] + then + echo "LDPATH=\"${LIBPATH}:${LOC}/lib/gcc-lib/${CCHOST}/lib:${LOC}/lib/gcc-lib/${CCHOST}/lib64\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL} + else echo "LDPATH=\"${LIBPATH}\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL} + fi echo "MANPATH=\"${DATAPATH}/man\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL} echo "INFOPATH=\"${DATAPATH}/info\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL} echo "STDCXX_INCDIR=\"${STDCXX_INCDIR##*/}\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL} @@ -372,6 +383,7 @@ src_install() { echo "CC=\"gcc\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL} echo "CXX=\"g++\"" >> ${D}/etc/env.d/gcc/${CCHOST}-${MY_PV_FULL} + # Make sure we dont have stuff lying around that # can nuke multiple versions of gcc if [ -z "`use build`" ] @@ -513,6 +525,13 @@ src_install() { # Fix ncurses b0rking find ${D}/ -name '*curses.h' -exec rm -f {} \; + + #interim hack to disable multilib on amd64 + if [ "$ARCH" = "amd64" ] + then + cp ${FILESDIR}/specs-3.3-amd64-unilib ${D}/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3/specs + fi + } pkg_preinst() { |