[gui][PATCH] Remove library information from libgcj.pc.in
Thomas Fitzsimmons
fitzsim@redhat.com
Sat Jul 10 23:50:00 GMT 2004
Hi,
This patch removes library information from libgcj.pc.in. gcj uses its
own mechanisms to ensure that applications are linked against the
correct libraries, so there is no need to to specify -L${libdir} -lgcj.
Actually, specifying these values is detrimental, since it hard-codes a
library dependency in the resulting binary. This prevents the linked
application from being run against other versions of libgcj.so; for
example, the application can't be run against libraries in the build
directory, so the "make install" step is required after every change.
I'm committing this to java-gui-branch.
Tom
2004-07-10 Thomas Fitzsimmons <fitzsim@redhat.com>
* libgcj.pc.in: Remove library flags.
Index: libgcj.pc.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/libgcj.pc.in,v
retrieving revision 1.1
diff -u -r1.1 libgcj.pc.in
--- libgcj.pc.in 9 Jul 2003 07:11:11 -0000 1.1
+++ libgcj.pc.in 10 Jul 2004 23:42:59 -0000
@@ -1,10 +1,7 @@
prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
includedir=@includedir@
Name: libgcj
Description: libgcj
Version: @GCJVERSION@
-Libs: -L${libdir} -lgcj
Cflags: -I${includedir}
More information about the Java-patches
mailing list