http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52872
Bug #: 52872
Summary: --enable-plugin; incorrrect test for "exported
symbols" and "-rdynamic" in gcc/configure.ac
Classification: Unclassified
Product: gcc
Version: 4.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: plugins
AssignedTo: [email protected]
ReportedBy: [email protected]
On systems with non empty $exeext the configure tests are failing with:
checking for exported symbols...
d:\opt\devel\gnu\gcc\MINGW_NT\x86_64-w64-mingw32\mingw-w64-runtime-trunk-svn\gcc-4.6.1\bin\objdump.exe:
'conftest': No such file
checking for -rdynamic...
d:\opt\devel\gnu\gcc\MINGW_NT\x86_64-w64-mingw32\mingw-w64-runtime-trunk-svn\gcc-4.6.1\bin\objdump.exe:
'conftest': No such file
All active branches are affected!
possible patch against trunk, see below.
I'm not really sure if this is the right thing to do for a cross setup or if we
have to use $host_exeext. Anyway, something along the lines should fix it, al
least for a native bootstrap.
diff -Naur gcc-trunk/gcc/configure.ac gcc-new/gcc/configure.ac
--- gcc-trunk/gcc/configure.ac 2012-03-29 18:25:52.789019300 +0200
+++ gcc-new/gcc/configure.ac 2012-04-04 19:02:29.669435800 +0200
@@ -5021,14 +5021,14 @@
if test "x$export_sym_check" != x; then
echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
- if $export_sym_check conftest | grep foobar > /dev/null; then
+ if $export_sym_check conftest${exeext} | grep foobar > /dev/null; then
: # No need to use a flag
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([yes])
AC_MSG_CHECKING([for -rdynamic])
${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null
2>&1
- if $export_sym_check conftest | grep foobar > /dev/null; then
+ if $export_sym_check conftest${exeext} | grep foobar > /dev/null; then
plugin_rdynamic=yes
pluginlibs="-rdynamic"
else