boost build issue with -Wl,--as-needed or binutils-gold
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Enblend |
Fix Released
|
Medium
|
Christoph Spiel |
Bug Description
Hello,
programs including the boost_filesystem headers also should be linked against *both* boost_filesystem headers and boost system, since boost_system functions are invoked directly via inline functions in the boost_filesystem headers. The autoconf setup of enblend-enfuse does not do this.
enblend 4.0 will therefore fail to build from source if binutils-gold is used or LDFLAGS=
-------
i686-linux-gnu-g++ -D_GNU_SOURCE -D_FILE_
enblend-
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
collect2: ld returned 1 exit status
make[5]: *** [enblend] Error 1
-------
hg head behaves slightly differently, the autoconf test fails and the build falls back to Boost's generic filename parsing. The cmake setup already checks for both libraries afaict.
FWIW Ubuntu linux has recently enabled LDFLAGS=
Works-for-me patch attached.
Changed in enblend: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
assignee: | nobody → Christoph Spiel (cspiel) |
Changed in enblend: | |
status: | Fix Committed → Fix Released |
The file asneeded.diff was added: suggested path for hg head