+do_configure_append() {
+ # when building with "security_flags.inc", libtool thinks that
+ # "-pie" means we want an executable, and links with related C
+ # runtime objects. Work around this until libtool is fixed.
+ sed -i 's/".\+Scrt1.o/"/g' ${B}/*libtool
+ sed -i 's/ .\+Scrt1.o/ /g' ${B}/*libtool
+ sed -i 's/-lgcc / /g' ${B}/*libtool
+ sed -i 's/-lgcc"/"/g' ${B}/*libtool
+}
+