Compiling libpaper on Cygwin does not create a shared library for no good reason.
Commands used:
$ tar xf libpaper_1.1.24+nmu5.tar.gz
$ cd libpaper-1.1.24+nmu5
$ ./debian/autogen.sh
$ ./configure --disable-static
$ make
...
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -version-info 2:2:1 -o libpaper.la -rpath /usr/local/lib libpaper_la-dimen.lo libpaper_la-paper.lo
libtool: error: can't build x86_64-unknown-cygwin shared library unless -no-undefined is specified
make[3]: *** [Makefile:396: libpaper.la] Error 1
make[3]: Leaving directory '/usr/src/libpaper-1.1.24+nmu5/lib'
...
libpaper actually does not rely on undefined symbols, so -no-undefined
can be used for greater portability - like in the attached patch.
Thanks!
/haubi/