* [PATCH] Fix PR52872
@ 2012-12-03 9:03 Rainer Emrich
0 siblings, 0 replies; only message in thread
From: Rainer Emrich @ 2012-12-03 9:03 UTC (permalink / raw)
To: gcc-patches; +Cc: Kai Tietz
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This fixes the tests for "exported symbols" and "-rdynamic" on systems with
exe extensions.
Kai, feel free to commit, if ok.
Cheers
Rainer
Patch against trunk:
Index: gcc/configure.ac
===================================================================
- --- gcc/configure.ac (revision 194074)
+++ gcc/configure.ac (working copy)
@@ -5156,14 +5156,14 @@ if test x"$enable_plugin" = x"yes"; then
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with undefined - http://www.enigmail.net/
iQEcBAEBAgAGBQJQvGrRAAoJEB3HOsWs+KJb9zsH/izdk3gQ2yp+CG4p74UzaFh/
4UsKwqOFG487Xr169q6HVovfAy5/SKZloxkbgywYyqJoTq6L3I2utx8Q2bYTv6Hx
9j5UJoiSoQDjlz1MW7nQ/ZgzX6Lbo7KXuH9p6CVKFOqisN+260qujmUnivhMJmKw
BE4XpGcumK9SnUmnWwvECuENnhZTmLYl+K1AFI83wxO2/dmZdqlwwsUG1opHz7P7
8y6DwT7G9JQpkwNU8dYEgv+n6JPK7GWXqu2Nvcn8J52vtN/DC09nUWpRtIj+myUb
8nv8rTk78EvCd4hzDp23oDHfw+6IUD6R9XIVRPVgPwpCQYyjCJ7OOD+YtAr96PY=
=LuVL
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-03 9:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-03 9:03 [PATCH] Fix PR52872 Rainer Emrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).