mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-30 19:10:36 +08:00
* Makefile.in: Make CXXFLAGS consistent with cygwin.
This commit is contained in:
parent
073519645b
commit
72ac8b4f0f
@ -1,3 +1,7 @@
|
|||||||
|
Sat Mar 18 12:45:10 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* Makefile.in: Make CXXFLAGS consistent with cygwin.
|
||||||
|
|
||||||
Wed Mar 15 00:53:58 2000 Christopher Faylor <cgf@cygnus.com>
|
Wed Mar 15 00:53:58 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* Makefile.in: Use MINGW_CXXFLAGS when compiling strace.
|
* Makefile.in: Use MINGW_CXXFLAGS when compiling strace.
|
||||||
|
@ -29,14 +29,14 @@ CC:=@CC@
|
|||||||
CC_FOR_TARGET:=$(CC)
|
CC_FOR_TARGET:=$(CC)
|
||||||
|
|
||||||
CFLAGS:=@CFLAGS@
|
CFLAGS:=@CFLAGS@
|
||||||
CXXFLAGS:=@CXXFLAGS@
|
CXXFLAGS:=@CXXFLAGS@ -fno-exceptions -nostdinc++ -fno-rtti
|
||||||
|
|
||||||
include $(srcdir)/../Makefile.common
|
include $(srcdir)/../Makefile.common
|
||||||
|
|
||||||
MINGW_INCLUDES:=-I$(updir)/mingw/include
|
MINGW_INCLUDES:=-I$(updir)/mingw/include
|
||||||
|
|
||||||
MINGW_CXXFLAGS:=$(CXXFLAGS) -mno-cygwin $(CXXFLAGS) $(MINGW_INCLUDES)
|
MINGW_CXXFLAGS:=$(CXXFLAGS) -mno-cygwin $(MINGW_INCLUDES)
|
||||||
MINGW_CFLAGS:=$(CFLAGS) -mno-cygwin $(CFLAGS) $(MINGW_INCLUDES)
|
MINGW_CFLAGS:=$(CFLAGS) -mno-cygwin $(MINGW_INCLUDES)
|
||||||
|
|
||||||
libcygwin:=$(cygwin_build)/libcygwin.a
|
libcygwin:=$(cygwin_build)/libcygwin.a
|
||||||
libuser32:=$(w32api_lib)/libuser32.a
|
libuser32:=$(w32api_lib)/libuser32.a
|
||||||
@ -52,6 +52,7 @@ ALL_LDLIBS:=${patsubst $(w32api_lib)/lib%.a,-l%,\
|
|||||||
|
|
||||||
MINGW_LIB:=$(mingw_build)/libmingw32.a
|
MINGW_LIB:=$(mingw_build)/libmingw32.a
|
||||||
MINGW_LDLIBS:=$(ALL_LDLIBS) $(MINGW_LIB)
|
MINGW_LDLIBS:=$(ALL_LDLIBS) $(MINGW_LIB)
|
||||||
|
MINGW_DEP_LDLIBS:=${ALL_DEP_LDLIBS} ${MINGW_LIB}
|
||||||
ALL_LDFLAGS:=-B$(newlib_build)/libc/ -B$(newlib_build)/libm/ -B$(w32api_lib)/ \
|
ALL_LDFLAGS:=-B$(newlib_build)/libc/ -B$(newlib_build)/libm/ -B$(w32api_lib)/ \
|
||||||
$(LDFLAGS) $(ALL_LDLIBS)
|
$(LDFLAGS) $(ALL_LDLIBS)
|
||||||
MINGW_LDFLAGS:=$(ALL_LDFLAGS) $(MINGW_LIB)
|
MINGW_LDFLAGS:=$(ALL_LDFLAGS) $(MINGW_LIB)
|
||||||
@ -70,7 +71,7 @@ WINSUP_DEPS:=$(cygwin_source)/winsup.h
|
|||||||
|
|
||||||
all: Makefile $(PROGS)
|
all: Makefile $(PROGS)
|
||||||
|
|
||||||
strace.exe: strace.cc mingw_getopt.o $(MINGW_LDLIBS)
|
strace.exe: strace.cc mingw_getopt.o $(MINGW_DEP_LDLIBS)
|
||||||
ifdef VERBOSE
|
ifdef VERBOSE
|
||||||
$(CC) $(MINGW_CXXFLAGS) -o $@ ${wordlist 1,2,$^} -B$(mingw_build)/ $(MINGW_LDFLAGS)
|
$(CC) $(MINGW_CXXFLAGS) -o $@ ${wordlist 1,2,$^} -B$(mingw_build)/ $(MINGW_LDFLAGS)
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user