From 61b45398de2ef5ddea890b29eab65ae8fe368f8d Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Fri, 28 May 1999 01:20:55 +0000 Subject: - fix mandir to $(prefix)/share/man - force gcc_tooldir to /tmp, avoid mkdir /usr/arch-unknown-openbsd - install gcc driver by hand, no arch-unknown-openbsd-gcc - alias g77 to f77 --- gnu/egcs/gcc/Makefile.bsd-wrapper | 16 +++++++++++----- gnu/egcs/gcc/config/x-openbsd | 3 +++ 2 files changed, 14 insertions(+), 5 deletions(-) (limited to 'gnu/egcs') diff --git a/gnu/egcs/gcc/Makefile.bsd-wrapper b/gnu/egcs/gcc/Makefile.bsd-wrapper index 08ddff8b1a3..1c5a0b1aa7c 100644 --- a/gnu/egcs/gcc/Makefile.bsd-wrapper +++ b/gnu/egcs/gcc/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.1 1999/05/26 15:47:00 espie Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.2 1999/05/28 01:20:53 espie Exp $ MAN= cccp.1 gcc.1 MLINKS+= gcc.1 cc.1 @@ -62,7 +62,8 @@ config: .FORCE PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \ /bin/sh ${.CURDIR}/configure --with-gnu-as --with-gnu-ld \ - --prefix=/usr --with-local-prefix=/usr ${CF} \ + --prefix=/usr -mandir='$$(prefix)/share/man' \ + --with-local-prefix=/usr ${CF} \ ${LANGUAGES} --enable-cpp --disable-nls \ --with-gxx-include-dir=${GPP_INC_DIR} ${GCCARCH} @@ -70,7 +71,8 @@ config.status: Makefile.in configure c-parse.in PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \ /bin/sh ${.CURDIR}/configure --with-gnu-as --with-gnu-ld \ - --prefix=/usr --with-local-prefix=/usr ${CF} \ + --prefix=/usr --mandir='$$(prefix)/share/man' \ + --with-local-prefix=/usr ${CF} \ ${LANGUAGES} --enable-cpp --disable-nls \ --with-gxx-include-dir=${GPP_INC_DIR} ${GCCARCH} && touch config.status @@ -106,10 +108,9 @@ install: maninstall target_path LIBIBERTY=-liberty \ INSTALL_TARGET='install-common $$(INSTALL_HEADERS) \ $$(INSTALL_LIBGCC) install-info \ - intl.install lang.install-normal install-driver' \ + intl.install lang.install-normal' \ NO_TARGET_GCC=true bindir=${DESTDIR}/usr/bin \ install - ln -f ${DESTDIR}/usr/bin/gcc ${DESTDIR}/usr/bin/cc chown -R ${BINOWN}.${BINGRP} ${DESTDIR}/usr/lib/gcc-lib chmod -R a+rX ${DESTDIR}/usr/lib/gcc-lib # if [ -e ${DESTDIR}/usr/lib/libf2c.a ]; then \ @@ -122,6 +123,11 @@ install: maninstall target_path fi ${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP} -m 755 xcpp \ ${DESTDIR}/usr/libexec/cpp + ${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP} -m 755 xgcc \ + ${DESTDIR}/usr/bin/gcc + ln -f ${DESTDIR}/usr/bin/gcc ${DESTDIR}/usr/bin/cc + [ -f ${DESTDIR}/usr/bin/g77 ] && \ + ln -f ${DESTDIR}/usr/bin/g77 ${DESTDIR}/usr/bin/f77 # ln -fs `cat target-path`/cpp \ # ${DESTDIR}/usr/libexec diff --git a/gnu/egcs/gcc/config/x-openbsd b/gnu/egcs/gcc/config/x-openbsd index 050639a79b0..3e6c3e9a05c 100644 --- a/gnu/egcs/gcc/config/x-openbsd +++ b/gnu/egcs/gcc/config/x-openbsd @@ -4,3 +4,6 @@ BISON=yacc # There is a linker bug on i386 that prevents cc1 from linking correctly # with a dynamic library #LIBIBERTY=-liberty + +# avoid making /usr/i386-unknown-openbsd2.5 +gcc_tooldir=/tmp -- cgit v1.2.3