bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/12742] ld error "unrecognized option '-plugin'" on mingw and how


From: gjl at gcc dot gnu.org
Subject: [Bug ld/12742] ld error "unrecognized option '-plugin'" on mingw and how to build with plugins enabled on mingw
Date: Thu, 30 Jun 2011 20:31:04 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12742

--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-06-30 
20:31:02 UTC ---
I see this problem with binutils 2.21 when building canadian cross:

Binutils configured:

../../source/binutils-2.21/configure --target=avr
--prefix=/local/gnu/install/avr-gcc-4.6.1-mingw32 --host=i386-mingw32
--build=i686-linux-gnu --disable-nls --enable-lto --enable-plugin

I tried to fix the dlfcn error by adding dlfcn-win32 to my i386-mingw32-gcc
build environment:
   http://code.google.com/p/dlfcn-win32/

With that support binutils build fine, but when running the canadian
cross-linker it fails to operate correctly on the lto plugin and throws an
error.

Not familiar with the dll/dlopen/LoadLibrary stuff at all, I gave up.  Maybe
the dlfcn-win32 ist not functional; I don't know.

Maybe someone with more experience in that field likes to try.  Note that dlfcn
configure does not handle --prefix correctly.  You must move it's definition
down in configure.

Johann

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]