make-w32
[Top][All Lists]
Advanced

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

Some questions about MAKE_HOST and LDFLAGS


From: Jerker Bäck
Subject: Some questions about MAKE_HOST and LDFLAGS
Date: Sat, 2 Jul 2005 09:30:04 +0200

1) MAKE_HOST
There's a string constant in config.h named MAKE_HOST
#define MAKE_HOST "Windows32" or "i686-pc-cygwin" ...
In the make code this is used only in version string output.
Does it matter what this string says?
Is it extracted by some tool (ie autoconfig) and used somehow?

2) LDFLAGS
What is the proper way to force inclusion of a library?
autoconfig and configure often test the compiler by compile a small program.
This program is linked to libc.lib. However, this is not enough for later
versions of the Microsoft C runtime library. You need at least one more
linked library (ie BufferOverflowU.lib) => linker failure.

I stated this in my cygwin startup script:
set cc=cl
set cxx=cl
set ld=link
set as=ml
set CFLAGS = -nologo -MD -Zi -Oxt -Oi -Oy -G6 -GF -EHsc
set LDFLAGS=bufferoverflowu.lib

It works, but sometimes it looks strange since LDFLAGS seems to be used as a
switch to the compiler. I want it to be used only by the linker. How to do
this?

regards
Jerker Bäck 





reply via email to

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