* Makefile.in: Change `-nostartfiles' to `-nostdlib' to avoid

automatic linking with default libraries when linking new-cygwin1.dll.
	Link with libgcc.a and libstdc++.a explicitly.
This commit is contained in:
Corinna Vinschen 2000-12-04 20:05:41 +00:00
parent db2d954944
commit 785e8cc89e
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Mon Dec 4 20:49:00 2000 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in: Change `-nostartfiles' to `-nostdlib' to avoid
automatic linking with default libraries when linking new-cygwin1.dll.
Link with libgcc.a and libstdc++.a explicitly.
Sun Dec 3 01:20:25 2000 Christopher Faylor <cgf@cygnus.com>
* path.cc (normalize_win32_path): Handle UNC paths better.

View File

@ -189,8 +189,8 @@ new-$(LIB_NAME): $(LIB_NAME)
# Rule to build cygwin.dll
new-$(DLL_NAME): $(DLL_OFILES) $(DEF_FILE) $(DLL_IMPORTS) $(LIBC) $(LIBM) Makefile winver_stamp
$(CXX) $(CXXFLAGS) -nostartfiles -Wl,-shared -o $@ -e $(DLL_ENTRY) $(DEF_FILE) $(DLL_OFILES) version.o \
winver.o $(DLL_IMPORTS) $(MALLOC_OBJ) $(LIBM) $(LIBC)
$(CXX) $(CXXFLAGS) -nostdlib -Wl,-shared -o $@ -e $(DLL_ENTRY) $(DEF_FILE) $(DLL_OFILES) version.o \
winver.o $(DLL_IMPORTS) $(MALLOC_OBJ) $(LIBM) $(LIBC) -lgcc -lstdc++
dll_ofiles: $(DLL_OFILES)