Relocate libgmp and libmpfr world makefiles
authorJohn Marino <>
Sat, 29 Sep 2012 17:57:07 +0000 (19:57 +0200)
committerJohn Marino <>
Sat, 29 Sep 2012 19:05:15 +0000 (21:05 +0200)
This action prepares for the import of GCC 4.7 into base.
GCC 4.4, unlike GCC 4.1, requires gmp and mpfr, and these libraries
were part of the GCC 4.4 world makefile set.  GCC 4.7 also needs
these libraries, so rather than build them twice, they are moved out
to a common area where both compilers can use them.

gnu/usr.bin/gmp/Makefile [moved from gnu/usr.bin/cc44/gmp/Makefile with 99% similarity]
gnu/usr.bin/gmp/Makefile.i386 [moved from gnu/usr.bin/cc44/gmp/Makefile.i386 with 100% similarity]
gnu/usr.bin/gmp/Makefile.x86_64 [moved from gnu/usr.bin/cc44/gmp/Makefile.x86_64 with 100% similarity]
gnu/usr.bin/gmp/config.h [moved from gnu/usr.bin/cc44/gmp/config.h with 100% similarity]
gnu/usr.bin/gmp/gmp.h [moved from gnu/usr.bin/cc44/gmp/gmp.h with 100% similarity]
gnu/usr.bin/mpfr/Makefile [moved from gnu/usr.bin/cc44/mpfr/Makefile with 97% similarity]
gnu/usr.bin/mpfr/mparam.h [moved from gnu/usr.bin/cc44/mpfr/mparam.h with 100% similarity]

index 77610f2..da2a3c8 100644 (file)
@@ -809,7 +809,7 @@ _share=     share/syscons/scrnmaps
 _gcc41_cross= gnu/usr.bin/cc41
 _gcc41_tools= gnu/usr.bin/cc41/cc_prep gnu/usr.bin/cc41/cc_tools
-_gcc44_cross= gnu/usr.bin/cc44
+_gcc44_cross= gnu/usr.bin/gmp gnu/usr.bin/mpfr gnu/usr.bin/cc44
 _gcc44_tools= gnu/usr.bin/cc44/cc_prep gnu/usr.bin/cc44/cc_tools
 _custom_cross= libexec/customcc
 _binutils= gnu/usr.bin/${WORLD_BINUTILSVER}
index e2b976e..0152d19 100644 (file)
@@ -18,8 +18,8 @@ SUBDIR+= ${BU_BACKUP}
 .if !defined(NO_GCC41)
-SUBDIR+= cc41
+SUBDIR+= gmp mpfr cc41
+.ORDER: ${BU_PRIMARY} gmp mpfr cc41
 SUBDIR+= cc44
index c6f4685..b1f622b 100644 (file)
@@ -31,8 +31,9 @@ CFLAGS+=      -I${GCCDIR}/gcc -I${GCCDIR}/gcc/config -I${GCCDIR}/include
 CFLAGS+=       -I${GCCDIR}/libcpp/include
 CFLAGS+=       -I${GCCDIR}/libdecnumber -I${GCCDIR}/libdecnumber/dpd
 CFLAGS+=       -I${OTOPDIR}/libdecnumber
-CFLAGS+=       -I${STOPDIR}/gmp
-CFLAGS+=       -I${.CURDIR}/${TOP_PREFIX}/../../../../contrib/mpfr/src -I${STOPDIR}/mpfr
+CFLAGS+=       -I${STOPDIR}/../gmp
+CFLAGS+=       -I${.CURDIR}/${TOP_PREFIX}/../../../../contrib/mpfr/src
+CFLAGS+=       -I${STOPDIR}/../mpfr
 CFLAGS+=       -I${GCCDIR}/gcc/config/${GCC_CPU} -I${TOOLDIR}
@@ -59,8 +60,8 @@ LIBBACKEND=   ${OTOPDIR}/libbackend/libbackend.a
 LIBCPP=                ${OTOPDIR}/libcpp/libcpp.a
 LIBDECNUMBER=  ${OTOPDIR}/libdecnumber/libdecnumber.a
-LIBGMP=                ${OTOPDIR}/gmp/libgmp.a
-LIBMPFR=       ${OTOPDIR}/mpfr/libmpfr.a
+LIBGMP=                ${OTOPDIR}/../gmp/libgmp.a
+LIBMPFR=       ${OTOPDIR}/../mpfr/libmpfr.a
similarity index 99%
rename from gnu/usr.bin/cc44/gmp/Makefile
rename to gnu/usr.bin/gmp/Makefile
index ac5c7c9..fb6789f 100644 (file)
@@ -1,7 +1,7 @@
 LIB=   gmp
-CONTRIBDIR=    ${.CURDIR}/../../../../contrib/gmp
+CONTRIBDIR=    ${.CURDIR}/../../../contrib/gmp
 .include "${.CURDIR}/Makefile.${MACHINE_ARCH}"
similarity index 97%
rename from gnu/usr.bin/cc44/mpfr/Makefile
rename to gnu/usr.bin/mpfr/Makefile
index ff34788..f2fa7b4 100644 (file)
@@ -1,4 +1,4 @@
-CONTRIBDIR=    ${.CURDIR}/../../../../contrib/mpfr/src
+CONTRIBDIR=    ${.CURDIR}/../../../contrib/mpfr/src
 LIB=   mpfr
@@ -6,6 +6,7 @@ INTERNALLIB=    # yes
 CFLAGS+=       -I${.OBJDIR}
+CFLAGS+=       -I${.CURDIR}
 CFLAGS+=       -I${.CURDIR}/../gmp