* Makefile.in (DLL_IMPORTS): Move libuuid.a and libshell32.a to list rather
than referring to them via -l. Add DLL imports last in link line for new-cygwin.dll and cygrun.exe.
This commit is contained in:
		
							parent
							
								
									fa3c05930c
								
							
						
					
					
						commit
						f77cd63642
					
				|  | @ -1,3 +1,9 @@ | ||||||
|  | 2002-08-24  Christopher Faylor  <cgf@redhat.com> | ||||||
|  | 
 | ||||||
|  | 	* Makefile.in (DLL_IMPORTS): Move libuuid.a and libshell32.a to list | ||||||
|  | 	rather than referring to them via -l.  Add DLL imports last in link | ||||||
|  | 	line for new-cygwin.dll and cygrun.exe. | ||||||
|  | 
 | ||||||
| 2002-08-19  Christopher Faylor  <cgf@redhat.com> | 2002-08-19  Christopher Faylor  <cgf@redhat.com> | ||||||
| 
 | 
 | ||||||
| 	* pinfo.h (pinfo::remember): Arrange for destructor call if | 	* pinfo.h (pinfo::remember): Arrange for destructor call if | ||||||
|  |  | ||||||
|  | @ -115,7 +115,7 @@ EXTRA_OFILES=$(bupdir1)/libiberty/random.o $(bupdir1)/libiberty/strsignal.o | ||||||
| 
 | 
 | ||||||
| MALLOC_OFILES=@MALLOC_OFILES@ | MALLOC_OFILES=@MALLOC_OFILES@ | ||||||
| 
 | 
 | ||||||
| DLL_IMPORTS:=$(w32api_lib)/libkernel32.a | DLL_IMPORTS:=$(w32api_lib)/libuuid.a $(w32api_lib)/libshell32.a $(w32api_lib)/libkernel32.a | ||||||
| 
 | 
 | ||||||
| # Please maintain this list in sorted order, with maximum files per 80 col line
 | # Please maintain this list in sorted order, with maximum files per 80 col line
 | ||||||
| DLL_OFILES:=assert.o autoload.o cygheap.o cygserver_client.o \
 | DLL_OFILES:=assert.o autoload.o cygheap.o cygserver_client.o \
 | ||||||
|  | @ -154,7 +154,7 @@ EXTRALIBS:=libautomode.a libbinmode.a libtextmode.a | ||||||
| INSTOBJS:=automode.o binmode.o textmode.o | INSTOBJS:=automode.o binmode.o textmode.o | ||||||
| TARGET_LIBS:=$(LIB_NAME) $(SUBLIBS) $(GMON_START) $(LIBGMON_A) $(SUBLIBS) $(INSTOBJS) $(EXTRALIBS) | TARGET_LIBS:=$(LIB_NAME) $(SUBLIBS) $(GMON_START) $(LIBGMON_A) $(SUBLIBS) $(INSTOBJS) $(EXTRALIBS) | ||||||
| .PHONY: all force dll_ofiles install all_target install_target all_host install_host \ | .PHONY: all force dll_ofiles install all_target install_target all_host install_host \ | ||||||
| 	install install-libs install-headers | 	install install-libs install-headers -lgcc | ||||||
| 
 | 
 | ||||||
| .SUFFIXES: | .SUFFIXES: | ||||||
| .SUFFIXES: .c .cc .def .a .o .d | .SUFFIXES: .c .cc .def .a .o .d | ||||||
|  | @ -254,8 +254,8 @@ maintainer-clean realclean: clean | ||||||
| new-$(DLL_NAME): $(LDSCRIPT) $(DLL_OFILES) $(DEF_FILE) $(DLL_IMPORTS) $(LIBC) $(LIBM) $(API_VER) Makefile winver_stamp | new-$(DLL_NAME): $(LDSCRIPT) $(DLL_OFILES) $(DEF_FILE) $(DLL_IMPORTS) $(LIBC) $(LIBM) $(API_VER) Makefile winver_stamp | ||||||
| 	$(CXX) $(CXXFLAGS) -nostdlib -Wl,-T$(firstword $^) -Wl,--out-implib,cygdll.a -shared -o $@ \
 | 	$(CXX) $(CXXFLAGS) -nostdlib -Wl,-T$(firstword $^) -Wl,--out-implib,cygdll.a -shared -o $@ \
 | ||||||
| 	-e $(DLL_ENTRY) $(DEF_FILE) $(DLL_OFILES) version.o winver.o \
 | 	-e $(DLL_ENTRY) $(DEF_FILE) $(DLL_OFILES) version.o winver.o \
 | ||||||
| 	$(DLL_IMPORTS) $(MALLOC_OBJ) $(LIBM) $(LIBC) \
 | 	$(MALLOC_OBJ) $(LIBM) $(LIBC) \
 | ||||||
| 	-lstdc++ -lgcc -lshell32 -luuid | 	-lstdc++ -lgcc $(DLL_IMPORTS)  | ||||||
| 
 | 
 | ||||||
| # Rule to build libcygwin.a
 | # Rule to build libcygwin.a
 | ||||||
| $(LIB_NAME): rmsym newsym new-$(DLL_NAME) $(LIBCOS) | $(LIB_NAME): rmsym newsym new-$(DLL_NAME) $(LIBCOS) | ||||||
|  | @ -314,9 +314,9 @@ winver_stamp: mkvers.sh include/cygwin/version.h winver.rc $(DLL_OFILES) | ||||||
| malloc.o: malloc.cc | malloc.o: malloc.cc | ||||||
| 	$(COMPILE_CXX) -fomit-frame-pointer -o $@ $< | 	$(COMPILE_CXX) -fomit-frame-pointer -o $@ $< | ||||||
| 
 | 
 | ||||||
| cygrun.exe : cygrun.o $(LIB_NAME) $(w32api_lib)/libuser32.a \ | cygrun.exe : cygrun.o -lgcc $(LIB_NAME) $(w32api_lib)/libuser32.a \ | ||||||
| 	     $(w32api_lib)/libshell32.a $(w32api_lib)/libkernel32.a | 	     $(w32api_lib)/libshell32.a $(w32api_lib)/libkernel32.a | ||||||
| 	$(CC) -nodefaultlibs -o $@ $^ -lgcc -lcygwin | 	$(CC) -nodefaultlibs -o $@ $^ | ||||||
| 
 | 
 | ||||||
| cygserver_transport_outside.o: cygserver_transport.cc | cygserver_transport_outside.o: cygserver_transport.cc | ||||||
| 	$(COMPILE_CXX) -D__OUTSIDE_CYGWIN__ -o $@ $< | 	$(COMPILE_CXX) -D__OUTSIDE_CYGWIN__ -o $@ $< | ||||||
|  | @ -342,6 +342,8 @@ cygserver.exe: cygserver.o cygserver_shm.o cygserver_transport_outside.o cygserv | ||||||
| #	$(CXX) $(MINGW_CXXFLAGS) -o $@ ${wordlist 1,3,$^} -B$(mingw_build)/ $(MINGW_LDFLAGS)
 | #	$(CXX) $(MINGW_CXXFLAGS) -o $@ ${wordlist 1,3,$^} -B$(mingw_build)/ $(MINGW_LDFLAGS)
 | ||||||
| #endif
 | #endif
 | ||||||
| 
 | 
 | ||||||
|  | -lgcc: | ||||||
|  | 
 | ||||||
| #
 | #
 | ||||||
| 
 | 
 | ||||||
| Makefile: cygwin.din | Makefile: cygwin.din | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue