WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: *** ERROR: mgwport internal error: __init_relocation called too early.

Re: *** ERROR: mgwport internal error: __init_relocation called too early.

by Erwin Waterlander-2 :: Rate this Message:

| View in Thread

Op 9-2-2012 17:54, waterlan schreef:

> On 2012-02-09 13:42, Earnie Boyd wrote:
>
>> It should be `cd /mingw; pwd -W`/share/locale at least that is where
>> the locale files already exist.
> That is what it will be if I'm able to pass $(__host_prefix) as a
> prefix.
>
> In Cygwin's cygport one can add prefix=$(__host_prefix) to MAKEOPTS. In
> mgwport this does not work, because $(__host_prefix) can't be used
> outside functions in mgwport.
>

Hi,

I can add options to the 'mgwmake' and 'mgwinstall' commands. So this is
what I do now:

MAKEOPTS="-j1 -f mingw.mak docsubdir=${PN}"

src_compile() {
     lndirs
     cd ${B}
     mgwmake prefix=$(__host_prefix)
}
src_install() {
     cd ${B}
     mgwinstall prefix=$(__host_prefix)

     cd ${D}/$(__host_prefix)/bin
     ln dos2unix.exe d2u.exe
     ln unix2dos.exe u2d.exe

     cd ${D}/$(__host_prefix)/share/man/man1
     ln -sf dos2unix.1 d2u.1
     ln -sf unix2dos.1 u2d.1
}

problem solved.

regards,

--
Erwin Waterlander
http://waterlan.home.xs4all.nl/


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
MinGW-dvlpr mailing list
MinGW-dvlpr@...
https://lists.sourceforge.net/lists/listinfo/mingw-dvlpr

 « Return to Thread: *** ERROR: mgwport internal error: __init_relocation called too early.