--- xmlsec-origin-library-order-issue-before.txt	2010-04-16 23:44:54.000000000 +0300
+++ xmlsec-origin-library-order-issue-after.txt	2010-04-16 23:44:59.000000000 +0300
@@ -1,4 +1,4 @@
-/bin/sh ../../libtool --debug --tag=CC \
+/bin/sh ../../libtool --tag=CC \
  --mode=link gcc  -g -O2 -version-info 3:14:2  \
  -R/usr/local/openssl/1.0.0/lib \
  -o libxmlsec1-openssl.la \
@@ -9,13 +9,13 @@
  libxmlsec1_openssl_la-kt_rsa.lo libxmlsec1_openssl_la-signatures.lo \
  libxmlsec1_openssl_la-symkeys.lo libxmlsec1_openssl_la-x509.lo \
  libxmlsec1_openssl_la-x509vfy.lo \
-   ../libxmlsec1.la \
  -L/usr/local/openssl/1.0.0/lib \
    -lcrypto -ldl \
  -L<BUILDROOT>/libxslt-origin/libxslt/.libs \
    -lxslt \
  -L<BUILDROOT>/libxml2-origin/.libs \
-   -lxml2
+   -lxml2 \
+   ../libxmlsec1.la
 libtool: link: rm -fr  .libs/libxmlsec1-openssl.a .libs/libxmlsec1-openssl.la .libs/libxmlsec1-openssl.lai .libs/libxmlsec1-openssl.so .libs/libxmlsec1-openssl.so.1 .libs/libxmlsec1-openssl.so.1.2.14
 libtool: link: gcc -shared \
  .libs/libxmlsec1_openssl_la-app.o .libs/libxmlsec1_openssl_la-bn.o \
@@ -32,17 +32,16 @@
  -L<BUILDROOT>/libxslt-origin/libxslt/.libs/.libs \
  -L<BUILDROOT>/libxml2-origin/.libs \
  -L<BUILDROOT>/libxml2-origin/.libs/.libs \
-   ../.libs/libxmlsec1.so \
+ -L/usr/local/openssl/1.0.0/lib \
+   -lcrypto \
  -L<BUILDROOT>/libxslt-origin/libxslt/.libs \
  -L<BUILDROOT>/libxml2-origin \
  -L/usr/local/lib \
+   ../.libs/libxmlsec1.so \
  -L/usr/lib \
-   /usr/lib/libltdl.so \
- -L/usr/local/openssl/1.0.0/lib \
-   -lcrypto \
    <BUILDROOT>/libxslt-origin/libxslt/.libs/libxslt.so \
    <BUILDROOT>/libxml2-origin/.libs/libxml2.so \
-   -ldl -lz -lm \
+   -lz -lm /usr/lib/libltdl.so -ldl
  -Wl,-soname -Wl,libxmlsec1-openssl.so.1 \
  -o .libs/libxmlsec1-openssl.so.1.2.14
 libtool: link: (cd ".libs" && rm -f "libxmlsec1-openssl.so.1" && ln -s "libxmlsec1-openssl.so.1.2.14" "libxmlsec1-openssl.so.1")
