The libpng, libjpeg and libtiff libraries are not linked when LDFLAGS="-Wl,--as-needed". With an empty LDFLAGS it compiles just fine. (...) Linking CXX executable matchpoint [ 41%] Building CXX object src/hugin1/base_wx/CMakeFiles/huginbasewx.dir/MyProgressDialog.o /var/tmp/portage/media-gfx/hugin-0.7.0_rc2/work/hugin_build/src/foreign/vigra/vigra_impex/libhuginvigraimpex.so: undefined reference to `Imf::RgbaInputFile::RgbaInputFile(char const*, int)' /var/tmp/portage/media-gfx/hugin-0.7.0_rc2/work/hugin_build/src/foreign/vigra/vigra_impex/libhuginvigraimpex.so: undefined reference to `png_create_read_struct' (...) Reproducible: Always Steps to Reproduce:
Last as-needed bug on upstream: http://sourceforge.net/tracker/index.php?func=detail&aid=1729682&group_id=77506&atid=550443
Stefan, could you please test the attached patch in this link? http://sourceforge.net/tracker/index.php?func=detail&aid=1979840&group_id=77506&atid=550443
The patch works.
patch added, thanks for testing and reporting! you may resync and remerge hugin in a few hours.