On Sun, Aug 26, 2012 at 10:20:22AM -0400, Brad Smith wrote:
> On Sun, Aug 26, 2012 at 02:51:47PM +0200, Pascal Stumpf wrote:
> > On Sat, 25 Aug 2012 09:55:38 -0400, Brad Smith wrote:
> > > Re-sync the GCC compilers LIB_SPEC with the base compilers.
> > 
> > The 4.7 REVISION is totally wrong obviously, and 3.3,-obj has it going
> > backwards.  Apart from that, looks ok.
> 
> Here is an updated diff as well as syncing the WANTLIB again.

Re-sync to -current.


Index: 3.3/Makefile
===================================================================
RCS file: /home/cvs/ports/lang/gcc/3.3/Makefile,v
retrieving revision 1.60
diff -u -p -r1.60 Makefile
--- 3.3/Makefile        20 Aug 2012 12:35:41 -0000      1.60
+++ 3.3/Makefile        26 Aug 2012 13:36:26 -0000
@@ -23,13 +23,13 @@ SHARED_LIBS =       estdc++         7.0 \
                objc            2.0 \
                objc_gc         2.0
 
-REVISION-main =                4
-REVISION-c++ =         6
+REVISION-main =                5
+REVISION-c++ =         7
 REVISION-estdc =       2
-REVISION-g77 =         5
-REVISION-java =                5
-REVISION-objc =                5
-REVISION-ada =         5
+REVISION-g77 =         6
+REVISION-java =                6
+REVISION-objc =                6
+REVISION-ada =         6
 EPOCH =                0
 
 MAINTAINER =   Marc Espie <es...@openbsd.org>
Index: 3.3/patches/patch-gcc_config_openbsd-libpthread_h
===================================================================
RCS file: 
/home/cvs/ports/lang/gcc/3.3/patches/patch-gcc_config_openbsd-libpthread_h,v
retrieving revision 1.2
diff -u -p -r1.2 patch-gcc_config_openbsd-libpthread_h
--- 3.3/patches/patch-gcc_config_openbsd-libpthread_h   20 Aug 2012 12:35:41 
-0000      1.2
+++ 3.3/patches/patch-gcc_config_openbsd-libpthread_h   25 Aug 2012 13:18:15 
-0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-gcc_config_openbsd-libpthread_h,v 1.2 2012/08/20 12:35:41 
pascal Exp $
---- gcc/config/openbsd-libpthread.h.orig       Thu Aug 16 03:08:41 2012
-+++ gcc/config/openbsd-libpthread.h    Thu Aug 16 03:09:49 2012
+--- gcc/config/openbsd-libpthread.h.orig       Sat Aug 25 09:04:51 2012
++++ gcc/config/openbsd-libpthread.h    Sat Aug 25 09:17:11 2012
 @@ -0,0 +1,23 @@
 +/* LIB_SPEC appropriate for OpenBSD.  Include -lpthread if -pthread is
 +   specified on the command line. */
@@ -23,5 +23,5 @@ $OpenBSD: patch-gcc_config_openbsd-libpt
 +the Free Software Foundation, 59 Temple Place - Suite 330,
 +Boston, MA 02111-1307, USA.  */
 +
-+#define OBSD_LIB_SPEC "%{pthread:-lpthread%{!shared:%{p|pg:_p}}} 
-lc%{!shared:%{p|pg:_p}}"
++#define OBSD_LIB_SPEC "%{pthread:-lpthread%{!shared:%{p|pg:_p}}} 
%{!shared:-lc%{p:_p}%{!p:%{pg:_p}}}"
 +
Index: 4.2/Makefile
===================================================================
RCS file: /home/cvs/ports/lang/gcc/4.2/Makefile,v
retrieving revision 1.80
diff -u -p -r1.80 Makefile
--- 4.2/Makefile        20 Aug 2012 12:35:41 -0000      1.80
+++ 4.2/Makefile        26 Aug 2012 13:44:29 -0000
@@ -19,13 +19,13 @@ PKGNAME-java =  gcj-${FULL_PKGVERSION}
 PKGNAME-objc =  gobjc-${FULL_PKGVERSION}
 PKGNAME-ada =   gnat-${FULL_PKGVERSION}
 
-REVISION-main = 10
-REVISION-c++ = 14
+REVISION-main = 11
+REVISION-c++ = 15
 REVISION-estdc = 3
-REVISION-f95 = 12
-REVISION-java = 12
-REVISION-objc = 11
-REVISION-ada = 10
+REVISION-f95 = 13
+REVISION-java = 13
+REVISION-objc = 12
+REVISION-ada = 11
 EPOCH = 0
 
 SHARED_LIBS =  estdc++         13.0 \
@@ -207,7 +207,7 @@ RUN_DEPENDS-java =  archivers/unzip \
                        archivers/zip>=2.3p0
 
 RUN_DEPENDS-c++ =      ${RUN_DEPENDS} 
libstdc++->=4.2,<4.3|libstdc++->=4.2v0,<4.3v0:${BUILD_PKGPATH},-estdc
-WANTLIB-estdc =                c m
+WANTLIB-estdc =                m
 WANTLIB-java =         c m pthread z
 
 LIB_DEPENDS-f95 =      devel/gmp>=4.2 \
Index: 4.2/patches/patch-gcc_config_openbsd-libpthread_h
===================================================================
RCS file: 
/home/cvs/ports/lang/gcc/4.2/patches/patch-gcc_config_openbsd-libpthread_h,v
retrieving revision 1.2
diff -u -p -r1.2 patch-gcc_config_openbsd-libpthread_h
--- 4.2/patches/patch-gcc_config_openbsd-libpthread_h   20 Aug 2012 12:35:41 
-0000      1.2
+++ 4.2/patches/patch-gcc_config_openbsd-libpthread_h   25 Aug 2012 13:24:06 
-0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-gcc_config_openbsd-libpthread_h,v 1.2 2012/08/20 12:35:41 
pascal Exp $
---- gcc/config/openbsd-libpthread.h.orig       Thu Aug 16 03:15:26 2012
-+++ gcc/config/openbsd-libpthread.h    Thu Aug 16 03:16:44 2012
+--- gcc/config/openbsd-libpthread.h.orig       Sat Aug 25 09:20:29 2012
++++ gcc/config/openbsd-libpthread.h    Sat Aug 25 09:23:10 2012
 @@ -0,0 +1,23 @@
 +/* LIB_SPEC appropriate for OpenBSD.  Include -lpthread if -pthread is
 +   specified on the command line. */
@@ -23,5 +23,5 @@ $OpenBSD: patch-gcc_config_openbsd-libpt
 +the Free Software Foundation, 59 Temple Place - Suite 330,
 +Boston, MA 02111-1307, USA.  */
 +
-+#define OBSD_LIB_SPEC "%{pthread:-lpthread%{!shared:%{p|pg:_p}}} 
-lc%{!shared:%{p|pg:_p}}"
++#define OBSD_LIB_SPEC "%{pthread:-lpthread%{!shared:%{p|pg:_p}}} 
%{!shared:-lc%{p:_p}%{!p:%{pg:_p}}}"
 +
Index: 4.6/Makefile
===================================================================
RCS file: /home/cvs/ports/lang/gcc/4.6/Makefile,v
retrieving revision 1.31
diff -u -p -r1.31 Makefile
--- 4.6/Makefile        25 Aug 2012 18:22:54 -0000      1.31
+++ 4.6/Makefile        27 Aug 2012 21:27:35 -0000
@@ -179,17 +179,17 @@ PKG_ARGS += -DI386=0
 .endif
 
 RUN_DEPENDS =          ${BUILD_PKGPATH},-main
-WANTLIB =              c gmp mpc mpfr z
+WANTLIB =              c gmp m mpc mpfr z
 
 RUN_DEPENDS-main =
 RUN_DEPENDS-estdc =
 
 RUN_DEPENDS-c++ =      ${RUN_DEPENDS} \
                        ${BUILD_PKGPATH},-estdc>=4.6,<4.7
-WANTLIB-estdc =                c m
-WANTLIB-f95 =          ${WANTLIB} m
-WANTLIB-java =         ${WANTLIB} m pthread
-WANTLIB-go =           ${WANTLIB} m pthread
+WANTLIB-estdc =                m
+WANTLIB-f95 =          ${WANTLIB}
+WANTLIB-java =         ${WANTLIB} pthread
+WANTLIB-go =           ${WANTLIB} pthread
 
 LIB_DEPENDS +=         devel/gmp>=4.2 \
                        devel/mpfr \
Index: 4.6/patches/patch-gcc_config_openbsd-libpthread_h
===================================================================
RCS file: 
/home/cvs/ports/lang/gcc/4.6/patches/patch-gcc_config_openbsd-libpthread_h,v
retrieving revision 1.3
diff -u -p -r1.3 patch-gcc_config_openbsd-libpthread_h
--- 4.6/patches/patch-gcc_config_openbsd-libpthread_h   20 Aug 2012 12:35:41 
-0000      1.3
+++ 4.6/patches/patch-gcc_config_openbsd-libpthread_h   25 Aug 2012 13:33:41 
-0000
@@ -1,10 +1,10 @@
 $OpenBSD: patch-gcc_config_openbsd-libpthread_h,v 1.3 2012/08/20 12:35:41 
pascal Exp $
---- gcc/config/openbsd-libpthread.h.orig       Thu Aug 16 03:22:15 2012
-+++ gcc/config/openbsd-libpthread.h    Thu Aug 16 03:22:55 2012
+--- gcc/config/openbsd-libpthread.h.orig       Sun Sep 27 09:20:23 2009
++++ gcc/config/openbsd-libpthread.h    Sat Aug 25 09:28:37 2012
 @@ -18,5 +18,5 @@
     along with GCC; see the file COPYING3.  If not see
     <http://www.gnu.org/licenses/>.  */
  
 -#define OBSD_LIB_SPEC "%{!shared:%{pthread:-lpthread} -lc}"
-+#define OBSD_LIB_SPEC "%{pthread:-lpthread%{!shared:%{p|pg:_p}}} 
-lc%{!shared:%{p|pg:_p}}"
++#define OBSD_LIB_SPEC "%{pthread:-lpthread%{!shared:%{p|pg:_p}}} 
%{!shared:-lc%{p:_p}%{!p:%{pg:_p}}}"
  
Index: 4.7/Makefile
===================================================================
RCS file: /home/cvs/ports/lang/gcc/4.7/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- 4.7/Makefile        27 Aug 2012 20:06:16 -0000      1.12
+++ 4.7/Makefile        28 Aug 2012 01:22:08 -0000
@@ -21,8 +21,12 @@ PKGNAME-ada =   gnat-${FULL_PKGVERSION}
 #PKGNAME-go =  gccgo-${FULL_PKGVERSION}
 PKGSPEC-main = gcc->=4.7,<4.8
 
-REVISION =     1
-REVISION-estdc = 2
+REVISION-main =        2
+REVISION-c++ = 2
+REVISION-estdc = 3
+REVISION-f95 = 2
+REVISION-objc = 2
+REVISION-ada = 2
 
 SHARED_LIBS =  estdc++         15.0 \
                gfortran        4.0 \
@@ -184,7 +188,7 @@ RUN_DEPENDS-estdc =
 
 RUN_DEPENDS-c++ =      ${RUN_DEPENDS} \
                        ${BUILD_PKGPATH},-estdc>=4.7,<4.8
-WANTLIB-estdc =                c m
+WANTLIB-estdc =                m
 WANTLIB-java =         ${WANTLIB} pthread
 WANTLIB-main =         ${WANTLIB} pthread
 
Index: 4.7/patches/patch-gcc_config_openbsd-libpthread_h
===================================================================
RCS file: 
/home/cvs/ports/lang/gcc/4.7/patches/patch-gcc_config_openbsd-libpthread_h,v
retrieving revision 1.1
diff -u -p -r1.1 patch-gcc_config_openbsd-libpthread_h
--- 4.7/patches/patch-gcc_config_openbsd-libpthread_h   20 Aug 2012 12:35:41 
-0000      1.1
+++ 4.7/patches/patch-gcc_config_openbsd-libpthread_h   25 Aug 2012 13:51:39 
-0000
@@ -1,10 +1,10 @@
 $OpenBSD: patch-gcc_config_openbsd-libpthread_h,v 1.1 2012/08/20 12:35:41 
pascal Exp $
---- gcc/config/openbsd-libpthread.h.orig       Thu Aug 16 03:30:37 2012
-+++ gcc/config/openbsd-libpthread.h    Thu Aug 16 03:30:49 2012
+--- gcc/config/openbsd-libpthread.h.orig       Sun Sep 27 09:20:23 2009
++++ gcc/config/openbsd-libpthread.h    Sat Aug 25 09:50:23 2012
 @@ -18,5 +18,5 @@
     along with GCC; see the file COPYING3.  If not see
     <http://www.gnu.org/licenses/>.  */
  
 -#define OBSD_LIB_SPEC "%{!shared:%{pthread:-lpthread} -lc}"
-+#define OBSD_LIB_SPEC "%{pthread:-lpthread%{!shared:%{p|pg:_p}}} 
-lc%{!shared:%{p|pg:_p}}"
++#define OBSD_LIB_SPEC "%{pthread:-lpthread%{!shared:%{p|pg:_p}}} 
%{!shared:-lc%{p:_p}%{!p:%{pg:_p}}}"
  

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to