I believe that packages built (even in launchpad) with the free pascal compiler (fpc) also fail on this issue. See for instance my ppa builds of winff [1]:
This "did you forget -T" warning is explained at [2].
Other than introducing the workaround (export LIBRARY_PATH) to my package rules file, is there anything else I could do in a sane way to my package to prevent this from happening? I say from the perspective of building completely different packages, this should "just work". I fear that if we now rebuild winff (and possibly other packages built by fpc) included in Ubuntu it will FTBFS.
I believe that packages built (even in launchpad) with the free pascal compiler (fpc) also fail on this issue. See for instance my ppa builds of winff [1]:
Linking winff
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -lX11
/usr/bin/ld: cannot find -lgobject-2.0
/usr/bin/ld: cannot find -lglib-2.0
/usr/bin/ld: cannot find -lgthread-2.0
/usr/bin/ld: cannot find -lgmodule-2.0
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -latk-1.0
/usr/bin/ld: cannot find -ldl
/usr/bin/ld: cannot find -lc
winff.lpr(48,1) Error: Error while linking
This "did you forget -T" warning is explained at [2].
Other than introducing the workaround (export LIBRARY_PATH) to my package rules file, is there anything else I could do in a sane way to my package to prevent this from happening? I say from the perspective of building completely different packages, this should "just work". I fear that if we now rebuild winff (and possibly other packages built by fpc) included in Ubuntu it will FTBFS.
[1] http:// launchpadlibrar ian.net/ 67113259/ buildlog_ ubuntu- natty-amd64. winff_1. 3.2-2~ppa1n_ FAILEDTOBUILD. txt.gz www.freepascal. org/faq. var#unix- ld219
[2] http://