[csw-devel] SF.net SVN: gar:[15538] csw/mgar/pkg/gcc4/branches/ldflags-problem/Makefile

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Tue Sep 6 18:28:45 CEST 2011


Revision: 15538
          http://gar.svn.sourceforge.net/gar/?rev=15538&view=rev
Author:   wahwah
Date:     2011-09-06 16:28:44 +0000 (Tue, 06 Sep 2011)
Log Message:
-----------
pkg/gcc4/branches/ldflags-problem: a special branch to fix one problem

Modified Paths:
--------------
    csw/mgar/pkg/gcc4/branches/ldflags-problem/Makefile

Modified: csw/mgar/pkg/gcc4/branches/ldflags-problem/Makefile
===================================================================
--- csw/mgar/pkg/gcc4/branches/ldflags-problem/Makefile	2011-09-06 16:10:00 UTC (rev 15537)
+++ csw/mgar/pkg/gcc4/branches/ldflags-problem/Makefile	2011-09-06 16:28:44 UTC (rev 15538)
@@ -25,6 +25,8 @@
 DISTFILES    = $(DISTNAME).tar.bz2
 MASTER_SITES = $(GNU_MIRROR)/$(NAME)-$(VERSION)/
 
+LIBOBJC = 3
+
 PACKAGING_PLATFORMS = solaris9-sparc solaris9-i386
 PACKAGING_PLATFORMS += solaris10-sparc solaris10-i386
 
@@ -76,9 +78,16 @@
 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
+# Only c and c++ for testing
+CONFIGURE_ARGS += --enable-languages=c,c++
 CONFIGURE_ARGS += --with-system-zlib=/opt/csw
 
+# It doesn't work, it doesn't set the RPATH on libstdc++.so.6.
+# CONFIGURE_ARGS += --with-stage1-ldflags="-R$(libdir)"
+# CONFIGURE_ARGS += --with-boot-ldflags="-R$(libdir)"
+# CONFIG_SITE = --with-boot-ldflags="-R$(libdir)"
+EXTRA_EXPORTS += LD_OPTIONS
+
 # there could be some abstractions in gar.conf.mk, but at the moment there
 # aren't so let's specify architectures by hand.
 #
@@ -107,6 +116,16 @@
 EXTRA_EXPORTS += CFLAGS_FOR_TARGET
 EXTRA_EXPORTS += CXXFLAGS_FOR_TARGET
 
+# This branch is to facilitate efforts to fix the problem where libstdc++.so.6
+# doesn't have the RPATH set.
+# BOOT_LDFLAGS = -L$(libdir) -R$(libdir)
+# EXTRA_EXPORTS += BOOT_LDFLAGS
+# EXTRA_EXPORTS += LD_OPTIONS
+
+CONFIGURE_EXPORTS = CC $(EXTRA_EXPORTS)
+BUILD_EXPORTS =
+INSTALL_EXPORTS =
+
 # The theory goes that the CFLAGS and others cause problems with the multilib
 # builds where 64-bit binaries are built.  This is triggered by the gcc build;
 # the compiler binaries are 32-bit only, but since the compiler can generate
@@ -277,18 +296,19 @@
 RUNTIME_DEP_PKGS_CSWlibgomp1 += CSWlibgcc-s1
 OBSOLETED_BY_CSWlibgomp1 += $(PKG_BASENAME)corert
 
-PACKAGES += CSWlibobjc3
-CATALOGNAME_CSWlibobjc3 = libobjc3
-PKGFILES_CSWlibobjc3 += $(call baseisadirs,$(libdir),libobjc\.so\.3(\.\d+)*)
-SPKG_DESC_CSWlibobjc3 += $(DESCRIPTION), libobjc.so.3
-RUNTIME_DEP_PKGS_CSWlibobjc3 += CSWlibgcc-s1
 
-PACKAGES += CSWlibobjc-gc3
-CATALOGNAME_CSWlibobjc-gc3 = libobjc_gc3
-PKGFILES_CSWlibobjc-gc3 += $(call baseisadirs,$(libdir),libobjc_gc\.so\.3(\.\d+)*)
-SPKG_DESC_CSWlibobjc-gc3 += $(DESCRIPTION), libobjc_gc.so.3
-RUNTIME_DEP_PKGS_CSWlibobjc-gc3 += CSWlibgcc-s1
+PACKAGES += CSWlibobjc$(LIBOBJC)
+CATALOGNAME_CSWlibobjc$(LIBOBJC) = libobjc$(LIBOBJC)
+PKGFILES_CSWlibobjc$(LIBOBJC) += $(call baseisadirs,$(libdir),libobjc\.so\.$(LIBOBJC)(\.\d+)*)
+SPKG_DESC_CSWlibobjc$(LIBOBJC) += $(DESCRIPTION), libobjc.so.$(LIBOBJC)
+RUNTIME_DEP_PKGS_CSWlibobjc$(LIBOBJC) += CSWlibgcc-s1
 
+PACKAGES += CSWlibobjc-gc$(LIBOBJC)
+CATALOGNAME_CSWlibobjc-gc$(LIBOBJC) = libobjc_gc$(LIBOBJC)
+PKGFILES_CSWlibobjc-gc$(LIBOBJC) += $(call baseisadirs,$(libdir),libobjc_gc\.so\.$(LIBOBJC)(\.\d+)*)
+SPKG_DESC_CSWlibobjc-gc$(LIBOBJC) += $(DESCRIPTION), libobjc_gc.so.$(LIBOBJC)
+RUNTIME_DEP_PKGS_CSWlibobjc-gc$(LIBOBJC) += CSWlibgcc-s1
+
 PACKAGES += CSWlibssp0
 CATALOGNAME_CSWlibssp0 = libssp0
 PKGFILES_CSWlibssp0 += $(call baseisadirs,$(libdir),libssp\.so\.0(\.\d+)*)
@@ -483,6 +503,10 @@
 JAVA_BINARIES += gkeytool gnative2ascii gorbd grmic grmid grmregistry
 JAVA_BINARIES += gserialver gtnameserv jcf-dump jv-convert rebuild-gcj-db
 
+CONFIGURE_ENV = CC=$(CC)
+BUILD_ENV =
+INSTALL_ENV =
+
 include files/scripts.mk
 include gar/category.mk
 

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