[gtk-vnc-devel] [patch] solaris ld does not support --version-script



Hi there,

I'm trying to build gtk-vnc trunk code on Solaris, but met ld fail,
it is because ld on Solaris does not support --version-script, can we just remove it?

Attach the patch here, do not know it is a right one.

/opt/jdsbld/bin/ld-wrapper -G -h libgtk-vnc-1.0.so.0 -o .libs/libgtk-vnc-1.0.so.0.0.1  .libs/libgtk_vnc_1_0_la-continuation.o .libs/libgtk_vnc_1_0_la-coroutine.o .libs/libgtk_vnc_1_0_la-d3des.o .libs/libgtk_vnc_1_0_la-gvnc.o .libs/libgtk_vnc_1_0_la-vncdisplay.o .libs/libgtk_vnc_1_0_la-vncshmimage.o .libs/libgtk_vnc_1_0_la-vncmarshal.o  -R/usr/X11/lib -L/usr/X11/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lXi -lXext -lX11 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lmlib -lpangocairo-1.0 -lfontconfig -lXrandr -lXcomposite -lXdamage -lpango-1.0 -lcairo -lXfixes -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lgnutls -lc  --version-script=./libgtk-vnc_sym.version
/usr/ccs/bin/ld: illegal option -- version-script=./libgtk-vnc_sym.version
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)
        [-64]           enforce a 64-bit link-edit
        [-a]            create an absolute file
        [-b]            do not do special PIC relocations in a.out
        [-B direct | nodirect]
                        establish direct bindings, or inhibit direct binding
                        to, the object being created

Thanks,
Halton.
diff -r d6f1a50dbb0b src/Makefile.am
--- a/src/Makefile.am	Sun Oct 21 17:11:07 2007 -0300
+++ b/src/Makefile.am	Fri Oct 26 14:22:30 2007 +0800
@@ -7,7 +7,7 @@ libgtk_vnc_1_0_la_CFLAGS = @GTK_CFLAGS@ 
 libgtk_vnc_1_0_la_CFLAGS = @GTK_CFLAGS@ @GNUTLS_CFLAGS@ @WARNING_CFLAGS@ \
                            -DSYSCONFDIR=\""$(sysconfdir)"\" \
                            @DEBUG_CFLAGS@
-libgtk_vnc_1_0_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libgtk-vnc_sym.version \
+libgtk_vnc_1_0_la_LDFLAGS = -Wl \
                             -version-info 0:1:0
 
 gtk_vnc_includedir = $(includedir)/gtk-vnc-1.0/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]