This is the mail archive of the frysk-cvs@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[SCM] master: When --enable-jar-compile; link against .so and not .a.


The branch, master has been updated
       via  37f01a74321572e8e008360235e8fb49cceea05a (commit)
      from  a9e0843c888cab517a488878e005dd84583bb23a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 37f01a74321572e8e008360235e8fb49cceea05a
Author: Andrew Cagney <cagney@toil.yyz.redhat.com>
Date:   Mon Nov 26 13:30:36 2007 -0500

    When --enable-jar-compile; link against .so and not .a.
    
    frysk-common/ChangeLog
    2007-11-26  Andrew Cagney  <cagney@redhat.com>
    
    	* Makefile.rules (GEN_GCC_BUILDTREE_RPATHS): Move to near use.
    	* Makefile.gen.sh (echo_LDFLAGS): Dependant on JAR_COMPILE, set
    	LDFLAGS or LDADD to list of libraries to link against.

-----------------------------------------------------------------------

Summary of changes:
 frysk-common/ChangeLog       |    4 ++++
 frysk-common/Makefile.gen.sh |   17 ++++++++++-------
 frysk-common/Makefile.rules  |    3 +--
 3 files changed, 15 insertions(+), 9 deletions(-)

First 500 lines of diff:
diff --git a/frysk-common/ChangeLog b/frysk-common/ChangeLog
index ec27921..79ffe00 100644
--- a/frysk-common/ChangeLog
+++ b/frysk-common/ChangeLog
@@ -1,5 +1,9 @@
 2007-11-26  Andrew Cagney  <cagney@redhat.com>
 
+	* Makefile.rules (GEN_GCC_BUILDTREE_RPATHS): Move to near use.
+	* Makefile.gen.sh (echo_LDFLAGS): Dependant on JAR_COMPILE, set
+	LDFLAGS or LDADD to list of libraries to link against.
+
 	* Makefile.gen.sh (.cxx): Fix typo, do not conditionally add .cxx
 	files to sources.
 	* Makefile.rules (.jar.o): Remove  -fjni option.
diff --git a/frysk-common/Makefile.gen.sh b/frysk-common/Makefile.gen.sh
index 11b6de8..e22c26d 100755
--- a/frysk-common/Makefile.gen.sh
+++ b/frysk-common/Makefile.gen.sh
@@ -270,14 +270,19 @@ echo_LDFLAGS ()
     local name_=`echo_name_ $1`
     local class=`echo $1 | tr '[/]' '[.]'`
     echo "${name_}_LDFLAGS = --main=${class}"
+    echo "if JAR_COMPILE"
+    echo "${name_}_LDFLAGS += \${GEN_GCJ_SO_FLAGS}"
+    echo "else"
+    echo "${name_}_LDADD = \${GEN_GCJ_LDADD_LIST}"
+    echo "endif"
     case "${name}" in
 	*dir/* )
-                # set during non-standard builds such as RHEL 4.
-                echo "${name_}_LDFLAGS += \${GEN_${GEN_UBASENAME}_RPATH_FLAGS}"
-		;;
+            # set during non-standard builds such as RHEL 4.
+            echo "${name_}_LDFLAGS += \${GEN_${GEN_UBASENAME}_RPATH_FLAGS}"
+	    ;;
 	* )
-                echo "${name_}_LDFLAGS += \$(GEN_GCJ_BUILDTREE_RPATH_FLAGS)"
-		;;
+            echo "${name_}_LDFLAGS += \$(GEN_GCJ_BUILDTREE_RPATH_FLAGS)"
+	    ;;
     esac
     echo "${name_}_LDFLAGS += \${GEN_GCJ_NO_SIGCHLD_FLAGS}"
 }
@@ -451,7 +456,6 @@ ${sources} += ${GEN_SOURCENAME}/JUnitTests.java
 endif
 BUILT_SOURCES += ${GEN_SOURCENAME}/JUnitTests.java
 SCRIPT_BUILT += ${GEN_SOURCENAME}/JUnitTests.java
-TestRunner_LDADD = \${LIBJUNIT} \${GEN_GCJ_LDADD_LIST}
 TESTS += TestRunner
 noinst_PROGRAMS += TestRunner
 EOF
@@ -491,7 +495,6 @@ for suffix in .java .java-sh .mkenum .shenum .java-in ; do
 	    echo "${name_}_SOURCES ="
 	    echo "${name_}_LINK = \$(GCJLINK) \$(${name_}_LDFLAGS)"
 	    echo_LDFLAGS ${name}
-	    echo "${name_}_LDADD = \$(GEN_GCJ_LDADD_LIST)"
 	fi
     done || exit 1
 done
diff --git a/frysk-common/Makefile.rules b/frysk-common/Makefile.rules
index 1852afc..f52d92c 100644
--- a/frysk-common/Makefile.rules
+++ b/frysk-common/Makefile.rules
@@ -94,8 +94,6 @@ empty=
 space=$(empty) $(empty)
 JAVAROOT = classes
 
-GEN_GCC_BUILDTREE_RPATHS = $(top_builddir)/elfutils/libdw
-
 # The list of libraries for the GCJ programs is different to that of
 # the standalone .c programs.  Accumulate the GCJ list in
 # GEN_GCJ_LDADD_LIST.
@@ -133,6 +131,7 @@ GEN_GCJ_BUILDTREE_RPATHS = \
 		))
 GEN_GCJ_BUILDTREE_RPATH = \
 	$(subst $(space),:,$(sort $(GEN_GCJ_BUILDTREE_RPATHS)))
+GEN_GCC_BUILDTREE_RPATHS = $(top_builddir)/elfutils/libdw
 GEN_GCJ_BUILDTREE_RPATH_FLAGS = \
 	-Djava.library.path=$(GEN_GCJ_BUILDTREE_RPATH) \
 	-Wl,-rpath,$(GEN_GCJ_BUILDTREE_RPATH):$(GEN_GCC_BUILDTREE_RPATHS)


hooks/post-receive
--
frysk system monitor/debugger


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]