develooper Front page | perl.perl5.porters | Postings from January 2006

[PATCH] quiet gcc Info message in cygwin

Thread Next
Yitzchak Scott-Thoennes
January 25, 2006 19:16
[PATCH] quiet gcc Info message in cygwin
Message ID:
ld has an --enable-auto-import feature that is automatically on,
but triggers Info: messages to stderr if it is actually used but
not specified.  This specifies it, quieting these messages when
perl.exe is built and when ExtUtils::Embed is used:

env LD_RUN_PATH=/usr/local/lib/perl5/5.8.7/cygwin-thread-multi-64int/CORE PATH=/home/sthoenna/bleadperl/mp:.:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/bin:/cygdrive/c/Perl5.6/bin/:/cygdrive/c/Perl/bin/:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program\ Files/Common\ Files/Adaptec\ Shared/System:/usr/bin:/usr/lib/lapack:/usr/local:/etc:/usr/lib:/lib:/sbin:/usr/sbin:/usr/libexec gcc -L/home/sthoenna/bleadperl/mp  -L/usr/local/lib  -o perl perlmain.o lib/auto/DynaLoader/DynaLoader.a  -lperl `cat ext.libs` -lcrypt -lgdbm_compat 
-Info: resolving _MallocCfg_ptr by linking to __imp__MallocCfg_ptr (auto-import)

lib/ExtUtils/t/Embed......................Info: resolving _MallocCfg_ptr by linking to __imp__MallocCfg_ptr (auto-import)
Info: resolving _PL_sigfpe_saved by linking to __imp__PL_sigfpe_saved (auto-import)
Info: resolving _PL_malloc_mutex by linking to __imp__PL_malloc_mutex (auto-import)
Info: resolving _PL_op_mutex by linking to __imp__PL_op_mutex (auto-import)

--- perl-5.8.x/hints/	2004-02-22 14:07:58.000000000 -0800
+++ mp/hints/	2006-01-25 16:03:19.699691000 -0800
@@ -53,6 +53,9 @@
 # Win9x problem with non-blocking read from a closed pipe
+# suppress auto-import warnings
+ldflags="$ldflags -Wl,--enable-auto-import"
 # strip exe's and dll's
 #ldflags="$ldflags -s"
 #ccdlflags="$ccdlflags -s"

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About