[csw-devel] SF.net SVN: gar:[16349] csw/mgar/pkg/gcc4/branches/ada-enable/Makefile

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Dec 3 14:07:15 CET 2011


Revision: 16349
          http://gar.svn.sourceforge.net/gar/?rev=16349&view=rev
Author:   wahwah
Date:     2011-12-03 13:07:15 +0000 (Sat, 03 Dec 2011)
Log Message:
-----------
gcc4/branches/ada-enable: work in progress.

Modified Paths:
--------------
    csw/mgar/pkg/gcc4/branches/ada-enable/Makefile

Modified: csw/mgar/pkg/gcc4/branches/ada-enable/Makefile
===================================================================
--- csw/mgar/pkg/gcc4/branches/ada-enable/Makefile	2011-12-03 09:36:08 UTC (rev 16348)
+++ csw/mgar/pkg/gcc4/branches/ada-enable/Makefile	2011-12-03 13:07:15 UTC (rev 16349)
@@ -1,10 +1,4 @@
 # $Id$
-#
-# ! Ada is not built yet, it requires PPL which isn't built yet.
-#
-# amd64 compilation fails
-# potentially related bug:
-# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39048
 
 NAME      = gcc
 VERSION   = 4.6.2
@@ -36,7 +30,7 @@
 ## Source URLs
 VENDOR_URL = http://gcc.gnu.org
 
-GCC4_CC_HOME = $(HOME)/usr-$(GARCH)
+GCC4_CC_HOME = $(HOME)/usr-$(GARCH)-$(GAROSREL)
 ## Copyright File
 LICENSE = COPYING3
 
@@ -77,13 +71,11 @@
 CONFIGURE_ARGS += --with-cloog=$(BUILD_PREFIX)
 CONFIGURE_ARGS += --enable-cloog-backend=isl
 CONFIGURE_ARGS += --enable-java-awt=xlib
-# CONFIGURE_ARGS += --enable-libada
+CONFIGURE_ARGS += --enable-libada
 CONFIGURE_ARGS += --enable-libssp
 CONFIGURE_ARGS += --enable-objc-gc
 CONFIGURE_ARGS += --enable-threads=posix 
-# We'll build ada later. It requires the PPL library.
-# CONFIGURE_ARGS += --enable-languages=ada,c,c++,fortran,java,objc
-CONFIGURE_ARGS += --enable-languages=c,c++,fortran,java,objc
+CONFIGURE_ARGS += --enable-languages=ada,c,c++,fortran,java,objc
 CONFIGURE_ARGS += --with-system-zlib=/opt/csw
 
 # there could be some abstractions in gar.conf.mk, but at the moment there
@@ -119,9 +111,10 @@
 # gcc build; the compiler binaries are 32-bit only, but since the compiler can
 # generate 32-bit and 64-bit binaries, the libraries have to be built for both
 # architectures.
-CFLAGS =
-CXXFLAGS =
+# CFLAGS = -D_RESTRICT_KYWD=
 
+# CXXFLAGS = -D_RESTRICT_KYWD=
+
 # Might be necessary, but CFLAGS_FOR_TARGET seem to be enough for now.
 # BOOT_CFLAGS = $(CFLAGS_FOR_TARGET)
 # EXTRA_EXPORTS += BOOT_FLAGS
@@ -505,6 +498,41 @@
 RUNTIME_DEP_PKGS_$(PKG_BASENAME)java += CSWlibiconv2
 RUNTIME_DEP_PKGS_$(PKG_BASENAME)objc += CSWlibiconv2
 
+PACKAGES += $(PKG_BASENAME)ada
+SPKG_DESC_$(PKG_BASENAME)ada       = GCC Ada compiler (GNAT)
+RUNTIME_DEP_PKGS_$(PKG_BASENAME)ada         = $(PKG_BASENAME)core
+PKGFILES_$(PKG_BASENAME)ada  = $(prefix)/libexec/.*gnat1
+PKGFILES_$(PKG_BASENAME)ada += $(prefix)/lib/.*libgnat.*a
+PKGFILES_$(PKG_BASENAME)ada += $(prefix)/lib/.*libgnarl.*a
+PKGFILES_$(PKG_BASENAME)ada += $(prefix)/.*/adalib/.*
+PKGFILES_$(PKG_BASENAME)ada += $(prefix)/.*/adainclude/.*
+PKGFILES_$(PKG_BASENAME)ada += $(prefix)/info/.*gnat.*
+PKGFILES_$(PKG_BASENAME)ada += $(prefix)/bin/gnat(?!ive).*
+# There are static libraries, .a files in the ada package. Let them be.
+CHECKPKG_OVERRIDES_CSWgcc4ada += discouraged-path-in-pkgmap
+# It needs the core compiler.
+CHECKPKG_OVERRIDES_CSWgcc4ada += surplus-dependency|CSWgcc4core
+
+RUNTIME_DEP_PKGS_CSWgcc4ada += CSWlibiconv2
+RUNTIME_DEP_PKGS_CSWgcc4ada += CSWlibppl-c4
+RUNTIME_DEP_PKGS_CSWgcc4ada += CSWlibz1
+RUNTIME_DEP_PKGS_CSWgcc4ada += CSWlibmpfr4
+RUNTIME_DEP_PKGS_CSWgcc4ada += CSWlibpwl5
+RUNTIME_DEP_PKGS_CSWgcc4ada += CSWlibmpc2
+RUNTIME_DEP_PKGS_CSWgcc4ada += CSWlibgmpxx4
+RUNTIME_DEP_PKGS_CSWgcc4ada += CSWlibisl7
+RUNTIME_DEP_PKGS_CSWgcc4ada += CSWlibgcc-s1
+RUNTIME_DEP_PKGS_CSWgcc4ada += CSWlibgmp10
+RUNTIME_DEP_PKGS_CSWgcc4ada += CSWlibcloog-isl2
+RUNTIME_DEP_PKGS_CSWgcc4ada += CSWlibppl9
+
+PACKAGES += $(PKG_BASENAME)adart
+SPKG_DESC_$(PKG_BASENAME)adart = A deprecated package
+PKGFILES_$(PKG_BASENAME)adart  = flying-spaghetti-monster
+RUNTIME_DEP_PKGS_CSWgcc4adart += CSWlibgcc-s1
+PKGFILES_$(PKG_BASENAME)adart  = $(prefix)/lib/.*libgnat.*\.so.*
+PKGFILES_$(PKG_BASENAME)adart += $(prefix)/lib/.*libgnarl.*\.so.*
+
 # Maybe it's unnecessary.
 # # Solaris 10 on i386 specific:
 # RUNTIME_DEP_PKGS_$(PKG_BASENAME)core_i386_5.10 += CSWlibiconv2
@@ -550,7 +578,8 @@
 	@$(MAKECOOKIE)
 
 # We need GNU find as find
-PATH := /opt/csw/gnu:$(PATH)
+# PATH := /opt/csw/gnu:$(PATH)
+PATH := $(GCC4_CC_HOME)/bin:/opt/csw/gnu:$(PATH)
 
 # This override sets the right RPATH on libstdc++ and other libraries.
 LD_OPTIONS := -R/opt/csw/lib -R/opt/csw/lib/\$$ISALIST

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list