Mail Archives: cygwin-developers/2000/03/28/17:44:47
On Tue, Mar 28, 2000 at 10:52:05PM +0200, Corinna Vinschen wrote:
>Corinna Vinschen wrote:
>> In winsup/cygwin/Makefile.in:
>>
>> === SNIP ===
>> cygrun.exe : $(srcdir)/cygrun.c $(DLL_IMPORTS) $(w32api_lib)/libuser32.a
>> \
>> $(w32api_lib)/libshell32.a
>> $(CC) -o $@ -L$(w32api_lib) $(srcdir)/cygrun.c
>> === SNAP ===
>>
>> I have substituted $(CC) by $(COMPILE_CC) and it works fine.
>>
>> Just now a new build from scratch is running on my linux box
>> where I have changed all of the above details. Let's see...
>
>Ok, I'm thru with the exception of strace.exe. I had three
>remaining problems:
>
>- in mingw it wasn't possible to link the dll.
> Reason:
> The top level Makefile.in contains
>
> -L$$r/$(TARGET_SUBDIR)/winsup
> in CC_FOR_TARGET and CXX_FOR_TARGET which is wrong. It should be
>
> -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib
This needs to be there in case somebody has an older winsup directory.
I guess this needs to be added there. If this works, would you
check it into sourceware?
Also, can we simplify the DLL creation now using the newer linker?
>- in the mingw Makefile SUBDIRS computes to an empty list which results
> in a syntax error in the "subdirs:" rule. I have temporary solved it
> by adding a "dummy" entry.
I don't see a syntax error. It seems to be legal to have:
for f ; in stuff; do
I don't know why you're seeing an error. Is the above command an error
on your system?
>- When trying to compile winsup/utils/strace.exe the include path
> to winsup/w32api/include is missing. This may be a result of another
> problem in the top level Makefile.in. CC_FOR_TARGET and CXX_FOR_TARGET
> are containing
Why is this? My Makefile.in has these lines:
MINGW_INCLUDES:=-I$(mingw_source)/include -I$(cygwin_source)/include -I$(w32api_include)
MINGW_CXXFLAGS:=$(CXXFLAGS) -mno-cygwin $(MINGW_INCLUDES)
MINGW_CFLAGS:=$(CFLAGS) -mno-cygwin $(MINGW_INCLUDES)
strace is built using this command:
$(CC) $(MINGW_CXXFLAGS) -o $@ ${wordlist 1,2,$^} -B$(mingw_build)/ $(MINGW_LDFLAGS)
So, unless MINGW_INCLUDES is being overridden, I don't see why the w32api/include directory
is being excluded.
cgf
- Raw text -