[xmlsec] link error on linux (NSS)

Wan-Teh Chang wtc at netscape.com
Mon May 12 13:34:49 PDT 2003


-rpath-link instead of -rpath should be used in this patch.

Wan-Teh

Tejkumar Arora wrote:

 >
 > Index: configure.in
 > ===================================================================
 > RCS file: /cvs/gnome/xmlsec/configure.in,v
 > retrieving revision 1.63
 > diff -u -r1.63 configure.in
 > --- configure.in        5 May 2003 15:02:49 -0000       1.63
 > +++ configure.in        12 May 2003 16:00:06 -0000
 > @@ -445,7 +445,12 @@
 >        if test "$with_nspr" != "" ; then
 >           NSPR_PREFIX="$with_nspr"
 >           NSPR_CFLAGS="-I$with_nspr/include"
 > -         NSPR_LIBS="-L$with_nspr/lib $NSPR_LIBS_LIST"
 > +         if test "$with_gnu_ld" = yes
 > +         then
 > +           NSPR_LIBS="-Wl,-rpath -Wl,$with_nspr/lib -L$with_nspr/lib
 > $NSPR_LIBS_LIST"
 > +         else
 > +           NSPR_LIBS="-L$with_nspr/lib $NSPR_LIBS_LIST"
 > +         fi
 >           NSPR_LDADDS="-L$with_nspr/lib $NSPR_LIBS_LIST"
 >           NSPR_INCLUDES_FOUND="yes"
 >           NSPR_LIBS_FOUND="yes"
 > @@ -472,7 +477,12 @@
 >                 if test "$dir" = "/usr/lib" ; then
 >                    NSPR_LIBS="$NSPR_LIBS_LIST"
 >                 else
 > -                  NSPR_LIBS="-L$dir $NSPR_LIBS_LIST"
 > +                  if test "$with_gnu_ld" = yes
 > +                  then
 > +                     NSPR_LIBS="-Wl,-rpath -Wl,$dir -L$dir
 > $NSPR_LIBS_LIST"
 > +                  else
 > +                     NSPR_LIBS="-L$dir $NSPR_LIBS_LIST"
 > +                  fi
 >                 fi
 >                 NSPR_LIBS_FOUND="yes"
 >                 break
 > @@ -509,7 +519,12 @@
 >      if test "$with_nss" != "" ; then
 >         NSS_PREFIX="$with_nss"
 >         NSS_CFLAGS="-I$with_nss/include"
 > -       NSS_LIBS="-L$with_nss/lib $NSS_LIBS_LIST"
 > +       if test "$with_gnu_ld" = yes
 > +       then
 > +          NSS_LIBS="-Wl,-rpath -Wl,$with_nss/lib -L$with_nss/lib
 > $NSS_LIBS_LIST"
 > +       else
 > +          NSS_LIBS="-L$with_nss/lib $NSS_LIBS_LIST"
 > +       fi
 >         NSS_LDADDS="-L$with_nss/lib $NSS_LIBS_LIST"
 >         NSS_INCLUDES_FOUND="yes"
 >         NSS_LIBS_FOUND="yes"
 > @@ -535,7 +550,12 @@
 >               if test "$dir" = "/usr/lib" ; then
 >                  NSS_LIBS="$NSS_LIBS_LIST"
 >               else
 > -                NSS_LIBS="-L$dir $NSS_LIBS_LIST"
 > +                if test "$with_gnu_ld" = yes
 > +                then
 > +                   NSS_LIBS="-Wl,-rpath -Wl,$dir -L$dir $NSS_LIBS_LIST"
 > +                else
 > +                   NSS_LIBS="-L$dir $NSS_LIBS_LIST"
 > +                fi
 >               fi
 >               NSS_LIBS_FOUND="yes"
 >               break


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3693 bytes
Desc: S/MIME Cryptographic Signature
Url : http://www.aleksey.com/pipermail/xmlsec/attachments/20030512/bc4250ad/smime.bin


More information about the xmlsec mailing list