directfb-examples fix bfin compile
PATCH 1/1 directfb-examples fix bfin compile
The following patch fixes the directfb-examples compile for bfin/static, at least the linking.
At the install step the next error is:
$ host/usr/bin/bfin-uclinux-strip target/usr/bin/df_andi host/usr/bin/bfin-uclinux-strip:target/usr/bin/df_andi: File format not recognized
The toolchain bfin-uclinux-strip command seems not supporting static executables, only elf32 ones...
Any suggestions how to handle this? Disable strip?
Regards,
Peter
Peter Seiderer (1):
directfb-examples: explicitly add -lstdc++ for static build
package/directfb-examples/directfb-examples.mk | 4 ++++ 1 file changed, 4 insertions(+)
Signature · 1 line
2.1.4
PATCH 1/1 directfb-examples: explicitly add -lstdc++ for static build
Fixes [1] and [2]:
undefined reference to `___cxa_pure_virtual'
undefined reference to `___gxx_personality_v0'
[1] http://autobuild.buildroot.net/results/bd0/bd0f4b3e41bf6330f83e3d9b58d985cc63506a3b/
[2] http://autobuild.buildroot.net/results/584/584ace383204d97fcaad37742e2e035ca78a3d10/
--- package/directfb-examples/directfb-examples.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/directfb-examples/directfb-examples.mk +4 -0
@@ -12,6 +12,10 @@ DIRECTFB_EXAMPLES_LICENSE_FILES = COPYING DIRECTFB_EXAMPLES_INSTALL_STAGING = YES DIRECTFB_EXAMPLES_DEPENDENCIES = directfb +ifeq ($(BR2_STATIC_LIBS),y) + DIRECTFB_EXAMPLES_CONF_OPTS += LIBS=-lstdc++ +endif + DIRECTFB_EXAMPLES_TARGETS_ = DIRECTFB_EXAMPLES_TARGETS_y =
Signature · 1 line
2.1.4
PATCH 1/1 directfb-examples: explicitly add -lstdc++ for static build
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Seiderer <[email protected]> writes:
Fixes [1] and [2]:
undefined reference to `___cxa_pure_virtual'
undefined reference to `___gxx_personality_v0'[1] http://autobuild.buildroot.net/results/bd0/bd0f4b3e41bf6330f83e3d9b58d985cc63506a3b/
[2] http://autobuild.buildroot.net/results/584/584ace383204d97fcaad37742e2e035ca78a3d10/Signed-off-by Peter Seiderer <[email protected]>
Committed, thanks.
I've also committed a change to drop the local stripping from the package.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 directfb-examples fix bfin compile
In reply to Peter SeidererQuoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Seiderer <[email protected]> writes:
The following patch fixes the directfb-examples compile for bfin/static, at least the linking.
At the install step the next error is:
Quoted 7 lines
$ host/usr/bin/bfin-uclinux-strip target/usr/bin/df_andi host/usr/bin/bfin-uclinux-strip:target/usr/bin/df_andi: File format not recognizedThe toolchain bfin-uclinux-strip command seems not supporting static executables, only elf32 ones...
Any suggestions how to handle this? Disable strip?
Yes, we do stripping globally in target-finalize if enabled, so the individual packages shouldn't strip.
Signature · 1 line
Bye, Peter Korsgaard