Source: cdo
Version: 1.5.6.1+dfsg.1-2
Severity: minor
Tags: patch
User: debian-...@lists.debian.org
Usertags: ld-as-needed

Here is a simple patch to allow cdo to build with ld --as-needed, which
is the default in Ubuntu.

libjasper is linked to libm, so -lm must appear in the linker command
line after -ljasper.

Thanks for considering the patch.

*** /tmp/tmpHpbajz/cdo_1.5.6.1+dfsg.1-2ubuntu1.debdiff
diff -Nru cdo-1.5.6.1+dfsg.1/debian/changelog 
cdo-1.5.6.1+dfsg.1/debian/changelog
diff -Nru cdo-1.5.6.1+dfsg.1/debian/rules cdo-1.5.6.1+dfsg.1/debian/rules
--- cdo-1.5.6.1+dfsg.1/debian/rules     2012-09-11 03:35:42.000000000 +0200
+++ cdo-1.5.6.1+dfsg.1/debian/rules     2012-11-08 10:00:27.000000000 +0200
@@ -52,7 +52,7 @@
          ./configure --prefix=/usr --libdir=$(LIBDIR) \
                --enable-cdi-lib --with-zlib=/usr --with-netcdf=/usr  
--with-proj=/usr --with-hdf5=/usr \
                --enable-iso-c-interface   \
-                $(WITH_GRIB) $(WITH_JASPER)  FC=gfortran LIBS="-Wl,-Bstatic 
-lpng12 -ljasper -ljpeg -lz -Wl,-Bdynamic -lcurl"
+                $(WITH_GRIB) $(WITH_JASPER)  FC=gfortran LIBS="-Wl,-Bstatic 
-lpng12 -ljasper -lm -ljpeg -lz -Wl,-Bdynamic -lcurl"
        rm -f libtool libcdi/libtool
        ln -sf /usr/bin/libtool libtool
        ln -sf /usr/bin/libtool libcdi/libtool

SR


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to