#858024 Use -no-undefined with libtool

Package:
src:libpaper
Source:
libpaper
Submitter:
Michael Haubenwallner
Date:
2024-10-31 00:15:02 UTC
Severity:
normal
Tags:
#858024#5
Date:
2017-03-17 12:14:05 UTC
From:
To:
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/

#858024#10
Date:
2024-10-30 23:53:31 UTC
From:
To:
Control: tags -1 wontfix
And why is that a problem for Debian?

#858024#17
Date:
2024-10-31 00:12:32 UTC
From:
To:
libpaper used to be a Debian native package, so the Debian BTS is
also used for non-Debian bugs.

Chris