This is the mail archive of the cygwin-patches@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cross compiling patches


Chris Faylor wrote:
> >- In winsup/cygwin/Makefile.in `cygrun.exe' has to be compiled with
> >  $(COMPILE_CC) because the linker stage results in the error
> >  `-lcygwin not found.'
> 
> Are you saying that the change I made to winsup/cygwin/Makefile.in
> doesn't solve this?  cygrun.o *is* being compiled via COMPILE_CC.

I see. It's a bit complicated: My patch was a mess but a change is
needed, actually. The missing part is the link path for the cygwin
directory itself. xgcc is grumbling

	`-lcygwin' not found.

cygrun.exe : cygrun.o $(DLL_IMPORTS) $(w32api_lib)/libuser32.a \
             $(w32api_lib)/libshell32.a
        $(CC) -o $@ -L$(w32api_lib) -L$(objdir) ${word 1,$^}
                                    ^^^^^^^^^^^
                                    THAT is the missing part.

I don't insist to make the patch _this_ way but the path is needed,
though.

Corinna

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]