diff --git a/configure.ac b/configure.ac index 9900310..f9761cc 100644 --- a/configure.ac +++ b/configure.ac @@ -710,7 +710,7 @@ if test "x${GCC}" = xyes; then | grep __stop___verbose | cut -d" " -f 3) test "${verbose_start_addr}" = "${verbose_stop_addr}" \ && gcc_has_attribute_section_visible=no \ - || { verbose_start_type=$(${READELF} -s backup \ + || { verbose_start_type=$(${READELF} -s "conftest${shrext_cmds}" \ | sed -n '/__start___verbose/{s/^\s*//p;q}' \ | tr -s ' ' \ | cut -d" " -f6) diff --git a/lib/Makefile.am b/lib/Makefile.am index 6ca6b15..b035f0b 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -101,7 +101,9 @@ endif endif qblog_script.ld: %.ld: %.ld.in - $(AM_V_GEN)$(CPP) -xc -I$(top_srcdir)/include -D_GNU_SOURCE -C -P $< \ + $(AM_V_GEN)$(CPP) -C -D_GNU_SOURCE -P \ + -I$(top_srcdir)/include -I$(top_builddir)/include \ + -xc $< \ | sed -n "/$$(sed -n '/^[^#]/{s/[*\/]/\\&/g;p;q;}' $<)/,$$ p" \ > $@