This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


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

Re: Patch: Xlib AWT and Java 2D


>>>>> "Bryce" == Bryce McKinlay <bryce@albatross.co.nz> writes:

Bryce> Only gnu.awt.xlib needs the simlink, thats where the XToolkit
Bryce> class is.

Thanks.

Bryce> Anyway, I don't think libgcj would ever try to dlopen the same
Bryce> library twice, would it?

Yes, of course.  Good thinking.

I'm checking this in.

2000-10-25  Tom Tromey  <tromey@cygnus.com>

	* Makefile.in: Rebuilt.
	* Makefile.am (install-exec-hook): New target.

Tom

Index: Makefile.am
===================================================================
RCS file: /cvs/java/libgcj/libjava/Makefile.am,v
retrieving revision 1.94
diff -u -r1.94 Makefile.am
--- Makefile.am	2000/10/22 17:46:08	1.94
+++ Makefile.am	2000/10/25 16:59:56
@@ -148,6 +148,16 @@
         -version-info `grep -v '^\#' $(srcdir)/libtool-version`
 libgcjx_la_LINK = $(LIBLINK)
 
+## Make a symlink for each `libgcjx' file that was installed.
+install-exec-hook:
+	cd $(DESTDIR)$(libdir) && \
+	if test -f libgcjx.la; then \
+	  for f in libgcjx*; do \
+	    t=`echo $$f | sed -e 's/libgcjx/gnu-awt-xlib/'`; \
+	    ln -s $$f $$t; \
+	  done; \
+	fi
+
 ## Make the .class files depend on the .zip file.  This seems
 ## backwards, but is right.  This doesn't catch all the .class files,
 ## but that is ok, because the ones it fails to pick up are defined in

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